aspose file tools*
The moose likes Servlets and the fly likes User gets logged out automatically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "User gets logged out automatically" Watch "User gets logged out automatically" New topic
Author

User gets logged out automatically

Abhishek Jha
Greenhorn

Joined: Jun 17, 2008
Posts: 3
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

Joined: Apr 14, 2004
Posts: 10336

Does your browser support cookies?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Arun Natarajan
Ranch Hand

Joined: Jul 21, 2006
Posts: 30
Did someone restart the app server? Sounds simple, but hey that happens sometimes too :-).
Abhishek Jha
Greenhorn

Joined: Jun 17, 2008
Posts: 3
Yes My Broser supports cookies. I am using IE 7.
Abhishek Jha
Greenhorn

Joined: Jun 17, 2008
Posts: 3
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

Joined: Feb 19, 2008
Posts: 2902
    
    1

I just speculating the things,

may be the problem with Servlet Filter, you are using one !


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: User gets logged out automatically