On Mon, 11 Dec 2000, Gunjan Doshi wrote:
> >I mean that i what my session to exist
> > for a certain period of time like say 8 hours
> > irrespective of whether i close my browser window or
> > not?
>
> I should have been more clear.
> What I mean was that above is not possible using the Session API.
Well, technically it still is possible. Just set the timeout to 8
hours. Then the session will stay around that long.
However, the real issue, the potential problem, perhaps what will
prevent the original poster from doing what they want, and perhaps
what you're getting at, is that if the client browser is closed, the
sessionid cookie that holds the "key" to the session is lost. So even
though the session can be kept around that long, it may be
inaccessible.
This can be gotten around if the sessionid cookie is stored on the
client machine (normally this cookie only exists while the browser is
running).
Hmmm, seems to me I remember something about there being some way to
specify that the sessionid cookie be persistent (i.e. stored on the
client machine). I couldn't find anything about it in an article I
have about the 2.2 spec, so perhaps I missed it, I'm misremembering,
it's something in a later spec, or it was some servlet container
vendor's specific option. I'm guessing somebody out there knows for
sure, and will respond clarifying things :-).
Of course, even if that were possible, it would only be a solution for
when cookies are used to pass the sessionid, not when it's done via
URL Rewriting.
> ----- Original Message -----
> From: "Mark Galbreath" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, December 11, 2000 12:25 PM
> Subject: Re: Session tracking
>
>
> > Well, that's not entirely true. He could use a database to keep a session
> > "alive" for a period of time and use either an authentication logon or
> > cookie to re-establish the relationship.
> >
> > -mark
> >
> > -----Original Message-----
> > From: Gunjan Doshi [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, December 11, 2000 12:12 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Session tracking
> >
> >
> > No.
> > Sessions represent a live user to the server. Once the user is gone the
> > session dies out.
> >
> >
> > ----- Original Message -----
> > From: "Srikanth Rao" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, December 11, 2000 9:48 AM
> > Subject: Session tracking
> >
> >
> > > Hi All,
> > >
> > > I have a question regarding maintaining of sessions.
> > >
> > > I don't what my session to expire even if i close my
> > > browser window. I mean that i what my session to exist
> > > for a certain period of time like say 8 hours
> > > irrespective of whether i close my browser window or
> > > not?
> > > I know that i can do it with cookies. But i want it in
> > > sessions as i need to store some info in the session.
> > >
> > > Is it possible?
[ ... ]
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