Answered Questions

  • How we can check in particular page the session will be alive or not?

    siva kumar reddy

    • Jul 31st, 2006

     use this methodHttpSession session=request.getSession(false);in this case the web container checks JSessionID is available on  behalf of client or not.if session is alive it sends old session id.if session is not available it returns null object.

    chetan

    • Jan 1st, 2006

    U can use the isRequestedSessionValid() method or another method is to use the getRequestedSessionId() method and check with the session id we have by getting the requestedId by req.getSessionId()