You can also do something like this.

session = request.getSession(false);
      if( session == null ) { //session is destroyed or not created
}else { //session is available

}


Thanks
Venkat
        -----Original Message-----
        From:   Dunwiddie, Bruce [SMTP:[EMAIL PROTECTED]]
        Sent:   Wednesday, March 13, 2002 3:05 AM
        To:     [EMAIL PROTECTED]
        Subject:        Re: Session Management

        if (session.getAttribute("someattributeyouareusing") == null){}

        that'd be my suggestion

        -----Original Message-----
        From: Maurice Munoz [mailto:[EMAIL PROTECTED]]
        Sent: Tuesday, March 12, 2002 1:24 PM
        To: [EMAIL PROTECTED]
        Subject: Session Management


        I need to know the simplest way to detect if a session has be
terminated in
        jsp?


==========================================================================To
        unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
        For digest: mailto [EMAIL PROTECTED] with body: "set
JSP-INTEREST
        DIGEST".
        Some relevant FAQs on JSP/Servlets can be found at:

         http://archives.java.sun.com/jsp-interest.html
         http://java.sun.com/products/jsp/faq.html
         http://www.esperanto.org.nz/jsp/jspfaq.jsp
         http://www.jguru.com/faq/index.jsp
         http://www.jspinsider.com


===========================================================================
        To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
        For digest: mailto [EMAIL PROTECTED] with body: "set
JSP-INTEREST DIGEST".
        Some relevant FAQs on JSP/Servlets can be found at:

         http://archives.java.sun.com/jsp-interest.html
         http://java.sun.com/products/jsp/faq.html
         http://www.esperanto.org.nz/jsp/jspfaq.jsp
         http://www.jguru.com/faq/index.jsp
         http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to