Discussions

Web tier: servlets, JSP, Web frameworks: Memory Leak in JSP Question

  1. Memory Leak in JSP Question (1 messages)

    Hi

    Well we have got an web application running on tomcat 5.5 which contains a few jsp's. You are able to browse from jsp to jsp after you have successfully logged on. During the login mechanism we store a class in the http session,which is a client to a statefull session bean on the J2EE side.

    What happens to the class stored in the http session if the customer closes down the window. Does the browser automatically set it to null or is it my responsibility to do this ?


    Any help very much appreciated
    Cheers
     Rolf
  2. Memory Leak in JSP Question[ Go to top ]

    HiWell we have got an web application running on tomcat 5.5 which contains a few jsp's. You are able to browse from jsp to jsp after you have successfully logged on. During the login mechanism we store a class in the http session,which is a client to a statefull session bean on the J2EE side. What happens to the class stored in the http session if the customer closes down the window. Does the browser automatically set it to null or is it my responsibility to do this ?Any help very much appreciatedCheers Rolf

    If the user closes the browser, the browser wouldn't do anything. The session ultimately gets invalidated when the session times out on the server.

    You might want to think about setting a less maximum inactive period.