This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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


Win a copy of Building Microservices this week in the Design forum!
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: 10441
    
176

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: how to implement globally unique identifier (GUID) in tomcat
 
jQuery in Action, 3rd edition