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

Software to detect if cookies are blocked  RSS feed

 
Jesus Fernandez
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all, please i need help.
I wonder if there is a method to detect if a browser has cookies disabled.
Thanks in advance.
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you can do it through javascript but not sure. You better post this question in JavaScript forum too. May be you can find the answer there.
 
Sonny Gill
Ranch Hand
Posts: 1211
IntelliJ IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can do it through javascript.
or you can take user to a JSP, set a cookie, then send a redirect to another page, that checks for the existance of the cookie. If it is not present, you can assume that the cookies are disabled
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!