File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Fawad Ali
Ranch Hand
Posts: 116
  • 0
  • 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
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • 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
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic