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

Test Cookies enable/disabled  RSS feed

 
Gayatri Ganesh
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,

Is there any way in JAva to test if the cookies are enabled or disabled.
I checked the HttpServletRequest and the Cookies class but they do not have any such method.
Does any one know of how to do this in Java , not javascript.

Thanks,
Gayatri
 
Ed Lance
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The closest way I can think of is getting the array from the request and checking for null...but that isn't specifically what you're asking.

Try this link for a work around.
Determine if user accepted a cookie
 
Gayatri Ganesh
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Ed Lance.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!