How to detect if cookies are turned on or not?

O

ozgan

Using ASP.NET 2.0, how can I determine if the user has cookies turned on or
not? I know how to use the Request object to check if the browser accepts
cookies or not. But, this is not what I need. I need to know if the user
has their system set up to block/reject cookies.

Is there an easy way in ASP.NET 2.0 to do this?

I've tried adding a cookie to the cookies collection, redirecting to another
page, and seeing if I can read that cookie, but this doesn't seem to work.
Even if I have cookies blocked, the cookie always gets set and, thus, read
on the next page.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,740
Latest member
AdolphBig6

Latest Threads

Top