This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Servlets and the fly likes How to restrict the user logging into my site twice from the same place or different Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to restrict the user logging into my site twice from the same place or different " Watch "How to restrict the user logging into my site twice from the same place or different " New topic
Author

How to restrict the user logging into my site twice from the same place or different

sjhyam m
Greenhorn

Joined: Apr 26, 2001
Posts: 7
Hi, I have to restrict the user from signing twice to my site from the same place or from another place. I would like you give functionality similar to Yahoo/MSN messenger, when the user logs in for the second time. In my applicatin I am able to catch the user when he logs in second time, and giving a message to the user about the relogin. But I want to close the previous session of the user, so that the user can continue working at this place. Any ideas/advices on how to do this.
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

As far as I know... there's really no way to invalidate a session simply with the Session ID. Check out this thread for more info on that --> http://www.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=7&t=007076
HTTP is a stateless protocol, I don't believe what you want to do is possible. -- Maybe look into applets or signed applets with full permission -- maybe you can do something there with what you want.


- Jess
Blog:KnitClimbJava | Twitter: jsant | Ravelry: wingedsheep
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to restrict the user logging into my site twice from the same place or different