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 id uniqueness 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 "session id uniqueness" Watch "session id uniqueness" New topic
Author

session id uniqueness

shankar vembu
Ranch Hand

Joined: May 10, 2001
Posts: 309
Is the session id I get from HttpSession.getId() unique, I mean even if I change my servlet container, am I assured to get a unique id... I dont think so. Actually I have to store some session info in the database alongwith the session id. So I dont want to mix up the session info. Can I rely on the getId() API or do I need to generate my own unique number for each session, and thus I am assured not to have any problem even if I change my container.
SHankar.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
I would think so.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: session id uniqueness
 
Similar Threads
EntityExistsException how to know which key i duplicate?
The time of listener methods called
Doubt about detached entity passed to persist
Session Variables
Doubts on Cookie..