Data stored in the session is only viable for the duration of the Session
itself.  In most servlet engines, this is about 30 minutes from the last
request.  Once the session has timed out, all the data is unbound and
garbage collected if not referenced elsewhere in the servlet.  If you wish
to maintain user data that is persistent, the session is not the place to
keep it.  I would suggest keeping some primary key information in the
session and keep the user data in a database for quick retrieval.  That way
you don't have to worry about losing your data when the server shuts down
and the session is used for what it was designed for.
    (*Chris*)

----- Original Message -----
From: John Carbrey <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 09, 1999 4:18 PM
Subject: Sesion Persistance


> When I create a sesion I want to be able to access the values stored by
the
> session next time they access my site.  If the server goes down I believe
> that the session information will go down also.  Do I need to save the
> session info to a file, does the Session class do this for me?
>
> Yt,
>
> John Carbrey
>
>
___________________________________________________________________________
> 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

Reply via email to