Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting Session as null

 
Nitin Gogia
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In a application; i have a JSP page which contains a link which points to servlet which serves the image.
Now the problem is when a servlet is called i get HTTP 401 - Unauthorized error and session is also null. I am not able to figure out why i am getting the session as null. I am using encodeURL to encode the link. Also this problem is not consistent. Sometimes it works and sometimes i get session as null and HTTP 401 error.
Please help.
Regards,
Nitin
 
Asher Tarnopolski
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
401 sounds strange. if you get null from your session, but it doesn't happen always, what is the chance your session just times out?
you can also post your code here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic