wood burning stoves 2.0
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "custom session management" Watch "custom session management" New topic

custom session management

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1283

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

Joined: Mar 22, 2000
Posts: 13036
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.

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1283

Thanks william..I'll try it for sure
I agree. Here's the link: http://aspose.com/file-tools
subject: custom session management
It's not a secret anymore!