I ran into a situation that I brought onto myself by disabling cookies: session state wasn’t working as expected. How do you check to see that the user has cookies enabled in an http module?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Set a cookie and then redirect them to a page inside the same site. If you don’t get a cookie back, then they don’t have cookies enabled. You can track them through this adventure by embedding a code in the URL or submitting a form.
Assuming you’ve rigged the page to set a cookie already, you can also use JavaScript to retrieve a “did you send a cookie” page. Then you can look at what you got back to see if the browser returned the cookie you sent it.