Title: RE: Help : Session Life Cycle in Servlet and SessionTimeOut parameter

A session may be invalidate as same as the user doesn't close the browser. The session cans expire later a time (the session timeout).

[]s
Luciano Coelho
Sun Certified Programmer for the JAVA2
e-Sec Data Security Technology
[EMAIL PROTECTED]

    ----------
    De:     Kumar Ashok[SMTP:[EMAIL PROTECTED]]
    Responder:      A mailing list for discussion about Sun Microsystem's Java Servlet API Technology.
    Enviada:        Quinta-feira, 13 de Janeiro de 2000 21:00
    Para:   [EMAIL PROTECTED]
    Assunto:        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

Reply via email to