struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Barrows" <jbarr...@sssc.com>
Subject RE: Not Logged in with the same loggin-password if it is already registered.
Date Wed, 28 Jul 2004 20:38:02 GMT


> -----Original Message-----
> From: Geeta Ramani [mailto:gramani@terralink.com]
> Sent: Wednesday, July 28, 2004 1:25 PM
> To: Struts Users Mailing List
> Subject: RE: Not Logged in with the same loggin-password if it is
> already registered.
> 
> 
> Exactly! Or use HttpSessionlistener and database solution 
> (that jim outlined) simultaneously..
> 
> (We are doing almost this except as a solution to a kind of 
> "opposite" problem - when a user logs off we need to do soem 
> work so.. this seems to work nicely)

Yeah, you'd have to use a session listener to get the sessio out of the hashtable.

> 
> > -----Original Message-----
> > From: news [mailto:news@sea.gmane.org]On Behalf Of Bill Siggelkow
> > Sent: Wednesday, July 28, 2004 4:28 PM
> > To: user@struts.apache.org
> > Subject: Re: Not Logged in with the same loggin-password if it is
> > already registered.
> > 
> > 
> > Maybe you could have a hashtable in the ServletContext that 
> > maps loginId 
> > to HttpSession -- then use a HttpSessionListener to listen 
> > for session 
> > creation -- when the session is created look for a value in 
> > the hashmap 
> > in the servlet context -- if it is there then invalidate the mapped 
> > session. Then add (put) the new mapping into the hashatable.
> > 
> > Ricardo Andres Quintero wrote:
> > 
> > > 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?  
> > > 
> > > --
> > > Ricardo Andrés Quintero R.
> > > Ubiquando Ltda.
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message