Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

User gets logged out automatically

 
Abhishek Jha
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are all possible reason when (HttpServletRequest).isRequestedSessionIdValid() will return false.

The actual problem is :

I got log out from application even when i was working on application few minutes back. Time out specified in web.xml is 240 i.e. 4 hrs.
In log file i found that the method isRequestedSessionIdValid is returning false and HttpSession object reset to null. I am using JBoss as application server.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does your browser support cookies?
 
Arun Natarajan
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did someone restart the app server? Sounds simple, but hey that happens sometimes too :-).
 
Abhishek Jha
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes My Broser supports cookies. I am using IE 7.
 
Abhishek Jha
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Restart of app server is not the problem. I have verified that.

If app server restarts then user gets log out if accessing the application but in that case also session Id cannnot be invalid or in other word isRequestedSessionIdValid method will not return false.
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just speculating the things,

may be the problem with Servlet Filter, you are using one !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic