I had considered that, but as it would require more database operations I
discarded it. Might work as long as serverload is low but when there are
many connections you might run out.
> -----Original Message-----
> From: santanu.goswami@i...
> [mailto:santanu.goswami@i...]
> Sent: Wednesday, February 06, 2002 13:10
> To: Pro_JavaServer_Pages
> Subject: [pro_jsp] RE: HOW TO RESTRICT USER FROM LOGGING FROM TWO MACH
> INE
>
>
> another solution..keep a field in database as status and the
> possible values
> like logged in, inactive , logged out etc and update that value
> depending on
> the current status.
>
> -----Original Message-----
> From: J.T. Wenting [mailto:jwenting@h...]
> Sent: Wednesday, February 06, 2002 5:09 PM
> To: Pro_JavaServer_Pages
> Subject: [pro_jsp] RE: HOW TO RESTRICT USER FROM LOGGING FROM TWO
> MACHINE
>
>
> Keep track of logged in users in memory by storing them in a static
> singleton containing (for example) a Vector with the userids of all logged
> in users.
> Check that list on any login attempt.
>
> > -----Original Message-----
> > From: sjr_r@y... [mailto:sjr_r@y...]
> > Sent: Wednesday, February 06, 2002 11:27
> > To: Pro_JavaServer_Pages
> > Subject: [pro_jsp] HOW TO RESTRICT USER FROM LOGGING FROM TWO MACHINE
> >
> >
> > Hi,
> > Could any body tell me how can i restrict user from logging in to the
> > server from two machines using same username and password at the
> > same time.
> > Thanks
>
>
> ------------------------------------------------------------------
> ----------
> This message contains privileged and confidential information and is
> intended only for the individual named.If you are not the
> intended recepient
> you should not disseminate,distribute,store,print, copy or deliver this
> message.Please notify the sender immediately by e-mail if you
> have received
> this e-mail by mistake and delete this e-mail from your system.E-mail
> transmission cannot be guaranteed to be secure or error-free as
> information
> could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or
> contain viruses.The sender therefore does not accept liability for any
> errors or omissions in the contents of this message which arise
> as a result
> of e-mail transmission. If verification is required please request a
> hard-copy version.
> ------------------------------------------------------------------
> ----------
>