aspose file tools*
The moose likes JSP and the fly likes About Session? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "About Session?" Watch "About Session?" New topic
Author

About Session?

Sirish Reddy
Greenhorn

Joined: Sep 16, 2004
Posts: 7
Hi Jguru's..
As soon as i obtaining my session object (eighter in servlet or jsp) can i explicitly Kills the session object if tell me the procedure lies inside?
Regards..
Sirish G Reddy.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
Look at the documentation for the HttpSession interface in the javax.servlet.http package.
See the method invalidate();
After a session has been invalidated, it is effectively killed since it can't be used in any way and will eventually be garbage collected.
If you don't have a copy of the Javadocs for the servlet and jsp classes you should get one asap.
Bill
Guido Schoepp
Greenhorn

Joined: Oct 14, 2004
Posts: 21
Originally posted by William Brogden:
After a session has been invalidated, it is effectively killed since it can't be used in any way ...


With one exception: you may call session.getServletContext() on an invalidated session object. You have to know this for the SCWCD exam... ;-)

Guido
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: About Session?