I think Jozef hit some of my points, I lost everything at the time the
session timed out. What I need is something like a ticket that contains
necessary info about the user that I can still get and use it to redirect
user to the appropriate places in case session timed out. I need the use to
tell me about themself. The only way to do this (since servler is request
and response based), is to keep giving this ticket at during response or
before the response is sent back to user.
The only way I can achieve this is "probably" in JSDK 2.3 Filter
function.... I hope...
Thanks Jozef
Rendra
-----Original Message-----
From: Jozef Chocholacek [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 11:48 PM
To: [EMAIL PROTECTED]
Subject: Re: Session Time out
Back to Rendra's problem with session-timeout. I am not 100% sure but
my experience is that you have no possibility to find out that session
is about to timeout and modify its timeout behavior. And there is also
problem that servlets are request-response based, so you cannot send
anything to the user without previous request.
If you want to redirect the user to "previous" page in case of s/he
had active session and it's timeouted and then s/he sends next request I
thing the only possibility is to use cookies, store there some
identifier and on the servlet side store the same identifier with URL of
"previous" page to the DB. Then, when new session is created, check if
the user has apropriate cookie and if yes, redirect him/her to the URL
from the DB.
J.Ch.
--
Ing. Jozef Chocholacek Qbizm Technologies, Inc.
Chief Project Analyst ... the art of internet.
________________________________________________________________
Kralovopolska 139 tel: +420 5 4124 2414
601 12 Brno, CZ http://www.qbizm.com fax: +420 5 4121 2696
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html