Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes In addition....why the session expire in several minutes? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "In addition....why the session expire in several minutes?" Watch "In addition....why the session expire in several minutes?" New topic
Author

In addition....why the session expire in several minutes?

Ken Shamrock
Ranch Hand

Joined: Jan 23, 2002
Posts: 139
(In addition to my question before. )
I've created 2 servlet java:
Userlogin.java(code below) -> create a session and user object (using UserLog.java), display "logined in" if user object found.
UserLog.java (code below) ->user object storing simple username.
The session seems expire in 10 mins, but what I expect is User Object expire only when the browser is closed. Is their any way I can set or I need to set in tomcat? Thanks
[ Code snipped by Mike C. ]
[ please don't post your code twice ]
[ here's a link to the first question ]
http://www.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=7&t=007236
[ January 23, 2002: Message edited by: Mike Curwen ]

Thanks everyone who helped me
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
When the session expires depends on what you have set, if you have set it, maxInactiveInterval to be. If you did not set it at all, I believe most servers just expire the session after 30 minutes of inactivity. And ofcourse, when the browser is closed.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: In addition....why the session expire in several minutes?