Less than 42 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



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

request.getCookies(); is not returning all the cookies  RSS feed

 
Fawad Ali
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have a strange problem. I try to get all the cookies by the following code


But its returning only one cookie and that is of JSessionId. I have confirmed that the cookie exists on the client side but somehow the function is not getting it. BTW at first the code worked fine for me but then later on it stopped working. Any ideas on this.

Thanks in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are the cookies for the same domain within which the servlet is executing?
 
Madhan Sundararajan Devaki
Ranch Hand
Posts: 312
Java MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sometimes browsers have intelligence to block cookies, as it cannot distinguish between safe and unsafe ones. See if your browser has the option to turn ON to accept cookies.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!