Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Cookies are not being written

$
0
0
Re: Cookies are not being written
Web Connection 5.0
Re: Cookies are not being written
Feb. 26, 2013
02:32 pm
3Q40V64W2Show this entire thread in new window
Gratar Image based on email address
From:Paul Mrozowski
To:Rick Strahl
lEnableSessionState is automatically set to .T. inside of the Authenticate() method when the authentication method is "UserSecurity" or "Custom" so it doesn't have to be set here (and doesn't make any difference if it's set to .T.).

I see the session being created / written to the table, I see this being added to the Cookie collection, however the cookie is never written to the output stream. At the point ExpandScript is called, the session has been added to the table and the info is sitting in the Cookie collection. Then Response.ExpandScript is called. It sets the ContentTypeHeader to "NONE". It's never changed to anything else. That basically means when RenderHttpHeader() is called on Response, the cookie is never written to the output stream (since that code just returns w/o doing anything).

I can force it to work if I set a breakpoint inside of RenderHttpHeader and, the second time it's called (via CompleteResponse()) , force it to continue instead of returning (by bypassing the RETURN).



-Paul

HTML Help Builder

Viewing all articles
Browse latest Browse all 10393

Trending Articles