On Wed, 25 Apr 2001, Basuki, Rendra wrote:
> I cannot do that, I need the client to tell me where they were from
> after the SESSION TIMED OUT. I do not want to use file or DB to
> write the user state either because I still do not know what is the
> key to get the user position or where they came from.
Here's a suggestion.
Turn off the servlet session timeout mechanism (i.e. make it infinite)
and implement a timeout mechanism yourself. You'd store the time of
each access in the session, and on each new access, check if the time
since the previous access is beyond your timeout period. If so, send
them back to the login page. You could store which login page they
used, and whatever other information you need, in the session itself.
I haven't paid such close attention to this entire discussion, so
apologies if this is not appropriate for some reason. Also, I'm not
familiar with all the technical details, so it's possible that this
suggestion isn't totally feasible.
> -----Original Message-----
> From: K.S.SREEDHAR KUMAR [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 24, 2001 9:44 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Session Time out
>
>
> instead of cookie we can store the info on the server itself no!
>
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 25, 2001 6:50 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Session Time out
>
>
> >>> "Basuki, Rendra" <[EMAIL PROTECTED]> 25-Apr-01 1:44:56 AM >>>
>
> >I can use cookie to remeber the user entrance, but
> >cookie can be disabled. So, any idea how to solve
> >my problem?
>
> String ref=request.getHeader("referrer");
> response.sendRedirect(ref);
>
> Not a very clean thing to do though.
Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]
___________________________________________________________________________
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