Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

enabled / disabled cookies  RSS feed

 
Naresh Chaurasia
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i find programatically whether the cookies are enabled or not.

thnx in advance.

N Chaurasia
 
Purushoth Thambu
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From Server side you can't find out these details. You must have a javascript in your starting page to read "navigator" objects "cookieEnabled" property and based on the value you can redirect the user to two set of pages. This will be more relevant on HTML forum.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65827
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Purushothaman Thambu:
From Server side you can't find out these details.


Not so. You can set a cookie in one response, and check for it in a subsequent request. But usually, you will see client-side checks.
[ May 31, 2006: Message edited by: Bear Bibeault ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!