Hi Niranjan,

 when a users enters,store his name in a statefull
session bean.so that ,if he enters from another
machine
we can check that ses bean and deny him.

If this works mail me or you got anyother idea also
mail me.

Thanks
S.Rangarajan

--- Niranjan Soni <[EMAIL PROTECTED]> wrote:
> Hi All
>
> I am developing an e-commerce application with
> Servlets as thin clients and EJB as the middle tier.
> Now my problem is allowing one user to Login to the
> application only once, which means that if he/she
> has
> logged in once into the application he can not log
> in
> again from the same m/c or from some different m/c
> till he logs out of the application properly.
> The point of concern here is how to avoid him from
> logging in from Two different m/c. I have been able
> to
> prevent successive log in from the same m/c bu
> writing
> the session id in cookie on the client's browser and
> then verifying the session with the session id if he
> tries to login again from the same m/c. But i am not
> able find any way how i can prevent him from logging
> in from two different m/c. I thought about doing
> this
> by using soft database lock (flag in the file) but
> that's less efficient and dangerous too.
> Does any one have an idea how i can go about doing
> this.
>
> Thanks
> Niranjan
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED]
> and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
>
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
>
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html
>
____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to