> -----Original Message----- > From: Ricardo Andres Quintero [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 28, 2004 12:04 PM > To: [EMAIL PROTECTED] > Subject: Not Logged in with the same loggin-password if it is already > registered. > > > Hello Guys > I need not to let users to login in my app simultaneosly. > I mean if a login-password is actually logged in, i need to > invalidatye that session and then let the new login-password > to work in, after invalidating the old session. > > Any ideas? and of course any examples?
It's not an easy solution, however you keep track of whose logged in (database is normal), when you log them in check that. Then you need to inactivate the session.. which means keeping a list of all active sessions where you can get at it, so you can invalidate the existing session. I don't think there is any way to get a session from the sessionId built in to either struts or the JSP/Servlet spec.. it's something you'll have to yourself. A hashtable, using the sessionId in applicatio scope would do the trick. > > -- > Ricardo Andrés Quintero R. > Ubiquando Ltda. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]