File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Session Handling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session Handling" Watch "Session Handling" New topic
Author

Session Handling

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I would like to be sure if all session related situations are taken care of. I did the following and please comment:
Once a user successfully logs on, I code this way:

when a user clicks on the logoff buttion, I code this way:

I do not implement HttpSessionBindingListener because I do not want to save any information in case the session expires. Nonetheless, each time the user sends a request, I do some checking:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session Handling
 
Similar Threads
Doubt in Setting the session scope as Application
Session
Session Timeout redirection not working properly
Who Creates the HttpSession , User or Weblogic
Checking if session exists problem