Thank you.
What I have done so far is create my own class named PersistentSession that holds a map from a
String to an object an has an API as similar as possible to HttpSession (getAttribute, setAttribute, etc.)
Next I have created a class named SessionContainer that maps a string (session id) to a the above PersistentSession. The session id is the value in a special cookie that I handle. The creation of the value is by UUID class.
Finally, the SessionContainer is a common object for the entire application.
For now I am not dumping this into a DB, and if the application stops, the session disappears. This is because as a newbie I am too afraid of SQL injection, and my DB is read only.
Do you think this scheme is reasonable one for my own session handling?