you can also look if you can do something with this: http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.HttpSession.html#setMaxInactiveInterval(int)
the only thing is that the servlet container should then use disk based cookies (instead of in mem/session cookies) then you won't loose anything and even after close of a browser and open it again you will have the exact same state. johan On 9/10/07, Zsolt Süli <[EMAIL PROTECTED]> wrote: > > Hi! > > I'd like to write a signIn page, that let me STAY LOGGED IN (/always > signed in/etc.). This way the session won't be closed when I close the > browser. The only way to invalidate the session is to log out (or many > days have to pass). I think I should use session cookies, and I should > set the expiration time somehow. And that's the question ... how? > > Thx in advance, > ZsZso > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
