Hi Jim,

Thanks for the help.. I did try it before what u said, but things are
going worst when user is login off with session time out or close the
browser, 
If user login again after browser crash or browser close then they have
to wait till session timeout is not done.
 

-----Original Message-----
From: Jim Kiley [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 05, 2008 10:37 PM
To: Struts Users Mailing List
Subject: Re: Single user Login

If you want to implement a full-blown security scheme like Spring
Security,
there are ways to do it.  If you don't (and that is understandable),
you're
going to need to track whether or not a given user is already logged in,
at
the application level.

One solution, which is absolutely quick-and-dirty, and undoubtedly NOT a
best practice, would be to stash a Set of userids in the application
scope,
using the ApplicationAware interface, and then compare the user who's
trying
to log in to that set of userids.  The complexity you'll get there is
removing the userid from the application scope when the user's session
times
out or he logs out.

jk

On Thu, Jun 5, 2008 at 12:58 PM, Prashant Saraf <[EMAIL PROTECTED]> wrote:

> Does anyone know how to do it?
>
> -----Original Message-----
> From: Prashant Saraf [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 05, 2008 7:14 PM
> To: Struts Users Mailing List
> Subject: RE: Single user Login
>
> Hi ,
>  I am managing it by DB check. My Helper class is checking either user
> is valid or not with DB.
>
> Regards
> PS.
>
>
> -----Original Message-----
> From: Jim Kiley [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 05, 2008 7:10 PM
> To: Struts Users Mailing List
> Subject: Re: Single user Login
>
> This really depends on how you are currently managing authentication.
> How
> are you currently managing authentication?
>
> On Thu, Jun 5, 2008 at 9:33 AM, Prashant Saraf <[EMAIL PROTECTED]>
wrote:
>
> > Hi,
> >
> > I want to know how to do single user login, that is user should not
> > login form multiple location at the same time.
> >
> > Regards,
> >
> > Prashant Saraf
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Jim Kiley
> Technical Consultant | Summa
> [p] 412.258.3346 [m] 412.445.1729
> http://www.summa-tech.com
>
> ---------------------------------------------------------------------
> 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]
>
>


-- 
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to