Community Page
- www.dennmart.com Jump to website »
-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- Good evening sir. Is this really stalkerish?
- i get info about fatten up those error pages for internet explorer 6.0.. thank you. ______________________________________________________________________ Alex
- Arg, thanks for figuring this out!
- Furthermore, it's useful to take in mind that Google doesn't like sites concerned to porno, so it may result getting some filters... Your blog is interesting with no porn. :)
- Thank for post. Also you can always ask me!
Jump to original thread »
On a recent Rails project, I was asked to verify if the visiting user’s browser has cookies enabled, and display a message on top of the screen if they don’t. While I don’t want to get into the reasoning why, or get into a flame war whether the site should s
... Continue reading »
9 months ago
That said, I like your solution even more, since while it does run on each page load, the impact should be negligible, and it doesn't require a page redirect at all. Nice work. :)
-Eric
7 months ago
I've modified your solution to also test for this case. In order to do this, I set the test cookie to a dynamic value, such as the current time. I then check whether the cookie has been set to the dynamic cookie value to ensure that "private browsing" has not been enabled.
In order for this to work, you unfortunately can't delete the cookie after the test. Otherwise, the test won't recognize when the user had a previous session created outside of private browsing mode that they are now trying to change in private browsing mode.
NOTE: I tried to post this comment earlier with a bit of javascript source in my comments, but DISQUS wasn't happy so I trimmed my code out.
4 months ago