Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session timeout problem

 
vipul bondugula
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I am having this code in web.xml file.



I set the session time out 50 minutes.But it is not working. After 10 or 20 minutes the session is expiring.

What might me the problem?

Thanks in Advance,
Vipul Reddy Bondugula.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you determining that the session has timed out?

What is the client browser doing during this time?

Bill
 
Abhishek Ralhan
Ranch Hand
Posts: 40
Chrome Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you please explain what is the whole flow from request to response(before which session times out)?
what is the error message you are getting on console/logs??
are you making a database call, if yes, what is its time-out?
 
vipul bondugula
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks For Reply,

Williams: "How are you determining that the session has timed out? "
Iam getting NullPointerException 500.In web.xml i configured a servlet "ErrorHandler" which is invoked when any 500 exception occurs.
In that servlet ,iam also checking the session. I'm puttin the code here.




In ErrorHandler, i got the session object. I already had the empcode in the session.
In the code iam checking whether the session attribute exists or not..if doesnot exist then session is timed out and shows the expiry message..

After relogin application is working properly..


if i don't click on any link or just sit idle for 10 to 15 min's session is expired.
Any one having any solution please help me...


Thanks & Regards,
Vipul Reddy.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic