Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Prevent multiple logins

 
patidar janak
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have make login module.i have check multiple login prevent using hash table and remove the entry from hash table when user logout.but problem is that when user close window without logout than how i will remove entry of hash table.is any listerner give me information or another method?

[Removed the 'shouting' and provided a meaningful topic - Dave]
[ March 14, 2007: Message edited by: David O'Meara ]
 
Wayan Saryada
Ranch Hand
Posts: 105
IntelliJ IDE MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can create a listener that implements javax.servlet.http.HttpSessionListener interface. This listener notify your about session creation and destroy events
 
Gobind Singh
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to write some sort of clever javascript to invalidate the session on browser kill. Have a look at this forum: http://forum.java.sun.com/thread.jspa?threadID=537660&messageID=2640996
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic