Checking Cookies for Forms Authentication

bizzydint

Regular
Joined
Apr 8, 2003
Messages
75
I'm having trouble detecting whether user's have cookies enabled on their browsers. Basically, our users are not entirely technically competent and therefore, if cookies are not enabled, we need to put up a message to tell them.

But, "Request.Browser.Cookie" returns whether a browser *can* do cookies, not whether the user has them switched on (so for IE 5+ we always get back true!)

I've tried setting the authcookie and retrieving it, but this refuses to work. I've also tried setting a tester cookie on page load and then retrieving it when the user logs in, but it doesnt pick it up.

Any ideas?
 
this is what I did: I read the cookie, then do a check to see if that cookie value is nothing, then based on that do whatever.
 
Back
Top