How can I tell if somebody has cookies disabled in their browser? REQUEST.setCookie doesn't throw an error if cookies are disabled. Thanks in advance, Rick
Hello D., Monday, May 6, 2002, 11:19:22 PM, you wrote: DRA> How can I tell if somebody has cookies disabled in their browser? DRA> REQUEST.setCookie doesn't throw an error if cookies are disabled. DRA> Thanks in advance, DRA> Rick Well, you really cannot , so you have to cheat. Set a cookie , and later check if it is there. if it is , cookies are enabled :-) -- Geir Bækholt web-developer geirh@funcom.com funcom oslo | webdev-team
How can I tell if somebody has cookies disabled in their browser? REQUEST.setCookie doesn't throw an error if cookies are disabled.
How should it? It only sets a header in the response to the browser. You don't "push" the cookie through the channel into the users browser. After setting the cookie you could redirect to the same page (setting an URL parameter which indicates you already were there). Then you can test for the presence of the cookie. Regards, Frank
participants (3)
-
D. Rick Anderson -
Frank Tegtmeyer -
Geir Bækholt