Two Laptop Bag*
The moose likes Servlets and the fly likes custom session management Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "custom session management" Watch "custom session management" New topic
Author

custom session management

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

is there any way out to have our own session management technique expect from present available session management options...??? interview hit me again


No Kaustubh No Fun, Know Kaustubh Know Fun..
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
Yes, you can create your own "session" management approach, keeping in mind the following:

1. Unique ID - you must create a unique ID which gets carried through all client interactions. While the obvious approach is to use Cookies to carry the unique Id, if the client has cookies turned off you can use hidden values in forms.

2. Serializability - your class implementing your sessions should be serializable for ease of storage on disk or database.

3. Life cycle management - you will need a way to clean up after a session life is ended.

Bill
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

Thanks william..I'll try it for sure
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: custom session management
 
Similar Threads
Cookie
session
JSP
Session management
Session