Kevin,

  Thanks for the reply but my question still remains unanswered. I would
really appreciate if you could throw some more light in this area. I guess I
am missing something.
   I understand that Session time out depends upon Server and controlled by
MaxSessionTimeOut parameter.
    My question is how does server decides to end the session? Does it times
out each sessions after MaxSessionTimeOut interval regularly or It does so
only if session is inactive (i.e. No activity going on in that session for
MaxSessionTimeOut interval, and browser is just lying open/closed  whatever).
    If you opened a browser and working in it, are you guaranteed that same
session will exist as long as you are doing something?

   In short I guess I don't understand what this session thing means.

Thanks
Ashok



Kevin Jones <[EMAIL PROTECTED]> wrote:
> Ashok,
>
> the session time-out depends entirely on the server, it has nothing to do
> with whether the browser window is open or not, so even if the browser
stays
> open the session couls end. However closing the browser and then opening a
> new instance may result in you getting a new session, but this depends on
> where the browser maintains session state,
>
> Kevin Jones
> DevelopMentor
>
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Kumar
> Ashok
> Sent: 13 January 2000 23:01
> To: [EMAIL PROTECTED]
> Subject: Help : Session Life Cycle in Servlet and SessionTimeOut
> parameter
>
>
> Hi,
>
>   I wanted to know how the Session Tracking works in Servlets.
> My question is:
> 1.  Does session exists as long as browser is open and goes away when
> browser is closed. i.e. If I get a Session using
>      HttpSession session = req.getSession(true);
>      and String ID = session.getId();
>
>   The Session with ID will exist as long as browser is open and I can keep
> any info in Session Object for use in other servlets which get invoked
> from HTML later.
>
>
> 2. What does SessionTimeOut parameter do?
>
>    Does it invlidates the session when browser is closed or user doesn't
> send any
> request after specified time?
>
>     I just want to make sure whether a Session is invalidated after
> SessionTimeOut period even if
> your browser is open and you doing something or not.
>
> Any help will be appreciated.
>
> Thanks
> Ashok
>
> ___________________________________________________________________________
> 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


____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1

___________________________________________________________________________
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