if you used an application-scoped bean to contain a table of userid's
matched to session id's, then when a user tries to log in you could test if
the pair of id's matches your list of currently logged-in users.
i'm just thinking out loud - the session-timeout value would be a factor in
designing this. there are probably better ways to do it.
Joe
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 18, 2001 5:03 PM
> To: JRun-Talk
> Subject: RE: Preventing Concurrent Login
>
>
>
>
> Hi Joe,
> Keeping application-scoped list of loges in users/setting
> some flag in db will
> work
> if user logged out properly. The problem is when user just
> close the browser ,
> there is no way to
> reset the Application scoped variable/Flag in db. This will
> cause preventing
> that user logging in
> next time.
> It would be nice if we can remove the logged in user
> whenever that session ends
> from the list.
> Kindly share your views abiut it..
>
> Thanks & Regards
>
>
>
>
> Joe Niski <[EMAIL PROTECTED]> on 01/19/2001 02:47:24 AM
>
> Please respond to [EMAIL PROTECTED]
>
> To: JRun-Talk <[EMAIL PROTECTED]>
> cc: (bcc: Savantraj Chennamakal Subramanian/PM4/ISSAP/SES/SONYASIA)
> Subject: RE: Preventing Concurrent Login
>
>
>
> How about keeping an application-scoped list of logged-in users?
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 17, 2001 11:05 PM
> > To: JRun-Talk
> > Subject: Preventing Concurrent Login
> >
> >
> >
> >
> > Hi,
> > I am having a JSP application running on JRun3.0. Could any
> > one suggest me some
> > method
> > to prevent the user from loging in more than one time concurrently?
> >
> > I thought of doing it by ServletContext. Since it's
> > depreciated by Sun (also not
> > working in JRun 3.0) I would rather prefer
> > some other way.
> >
> > Thanks & Regards
> >
> >
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists