aspose file tools*
The moose likes JSP and the fly likes Expire Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Expire" Watch "Expire" New topic
Author

Expire

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Hi All,

Can you please tell me how to expire a session after a fixed interval of time.(i.e if the browser is inactive for some time - say, 5 mins)
Once the session expires, and if user tries to access the page, then he is prompted for login again, am i right?
Please tell me how to solve this problem.

Thanks & Regards,
seetharaman
[ March 28, 2008: Message edited by: Bear Bibeault ]
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

You can set the session timeout in your web.xml:

The value is in minutes. 0 or less means that the session will never expire.


[My Blog]
All roads lead to JavaRanch
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Thanks

Christophe Verre.......
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Expire
 
Similar Threads
session management in different tabs in same browser
tracking browser back button
how does the server expire the session
Session Managment
regarding session