Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to implement globally unique identifier (GUID) in tomcat

 
seetharaman jayaraman
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
seetharaman jayaraman
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, session.invalidate() is called and then a logged out screen is displayed to the user
 
Kees Jan Koster
JavaMonitor Support
Rancher
Posts: 251
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you looked at http://java.sun.com/javase/6/docs/api/java/util/UUID.html ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic