This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Testing for cookie disabled browser - netscape problem

 
Sanjay Anand
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear gurus and colleagues,
I have a need to test whether cookies are enabled or not in the browser. Setting a cookie and then getting it did not work because the cookie seems to be visible only 'downstream' from the servlet. So looking through the ever so useful JavaRanch archives I found a solution.
It works for Internet Explorer but not for Netscape (no matter which version).
Any ideas?


 
Tim Holloway
Saloon Keeper
Pie
Posts: 18154
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's OK, but only if you've already created a session! The best way I know is to snoop out the browser's support in the site's home page so that when they go to log in, it all comes down and you can store it in the session. I do this not only for cookies, but detecting support for Java, JavaScript, etc.
 
Sanjay Anand
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please explain how I might do that?
Thanks in advance.
Sanjay
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic