Check Enable Cookies

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do you check in the vb codes whether the user has enabled the option to
accept cookies in his web browser?

Thank you in advance.
 
There is nothing built in that does this. You can build your own scheme though.
The general approach is to issue a cookie to the browser and redirect them
to a page with a QueryString like "TestingCookies=1". If in your page you
see the query string and there is no cookie, then you know they've disabled
cookies.

This is built into ASP.NET 2.0 when using Forms Authentication and Session
State (if properly configured).

-Brock
DevelopMentor
http://staff.develop.com/ballen
 

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

Back
Top