I want to check if a user has cookies enabled. Most solutions involve: 1. creating a cookie 2. redirect the user to a custom page or the same page. 3. Read the cookie.
The issue I have is in the 2nd step. Should I use a query string while doing a response.redirect so that in the next trip I know the cookie has already been set and that I should try to read it? What if the user hard codes the URL(along with that query string) in the browser, while accessing the website? Also, if I find that the cookies are enabled and I set a session variable to say that cookies are enabled on this browser, so dont check again in that session. Is that OK? If session is available, is that a good enough indicator that cookies are enabled?
I want to minimize these double trips to each page for checking cookies.