File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes how to implement globally unique identifier (GUID) in tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "how to implement globally unique identifier (GUID) in tomcat" Watch "how to implement globally unique identifier (GUID) in tomcat" New topic
Author

how to implement globally unique identifier (GUID) in tomcat

seetharaman jayaraman
Ranch Hand

Joined: Feb 18, 2008
Posts: 43
Hi,
We maintain session ids with log in, but which is invalidated only when we close the browser instead of at log out time. So, if i re-login without closing the browser i get the same session id. how to fix this.

And also help in implementing GUID in tomcat.

Thanks & Regards

Seetharaman Jayaraman
Only Change is Changeless
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10201
    
166

seetharaman jayaraman wrote:Hi,
We maintain session ids with log in, but which is invalidated only when we close the browser instead of at log out time.



How do you "logout"? Do you call session.invalidate() on logout?

[My Blog] [JavaRanch Journal]
seetharaman jayaraman
Ranch Hand

Joined: Feb 18, 2008
Posts: 43
yes, session.invalidate() is called and then a logged out screen is displayed to the user
Kees Jan Koster
JavaMonitor Support
Rancher

Joined: Mar 31, 2009
Posts: 251
    
    5
Have you looked at http://java.sun.com/javase/6/docs/api/java/util/UUID.html ?


Java-monitor, JVM monitoring made easy <- right here on Java Ranch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to implement globally unique identifier (GUID) in tomcat