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. 27, 2013
05:13 am
3Q50B78HOShow this entire thread in new window
Gratar Image based on email address
From:Paul Mrozowski
To:Rick Strahl
Well, the cookie IS written into the cookie collection via that special case in ExpandScript, it's just never written out.

I added a call in the WCS file to explicitly set the content type, but then it gets written into the response stream twice (you end up seeing the actual header at the bottom of the page). If I move it into the process subclass, it works OK (the cookie is written out and authentication works as expected) but seems really weird:

Response.ExpandScript("test2.wcs") Response.ContentTypeHeader("text/html")

Hmmm... I have to look into that - I can't recall why the code does that. I think the idea was that ExpandScript should handle its own content type and headers and it gets its own response object.

However, as for the auth cookie that's special cased in ExpandScript, so no matter what it should pick up the cookie and use it a little further down (the cAuthSessionCookie logic).

+++ Rick ---


Viewing all articles
Browse latest Browse all 10393

Trending Articles