Hi all,

I am facing the foolowing problem.............Please help me out.....

The system I am developing should not allow a single user to login at two
different places.So whenever a user logs in, I flag that particular user as
logged in(in the DB).When he logs out, I flag the user as logged out. At the
time of log in, I check this entry and process the user's log in. I have set
the time out period for 20 minutes.
        The problem I am facing is, if the user doesnot logout properly and just
closes his browser, The entry(flag) in the DB changes only after 20
minutes(After ime out).Meanwhile, if the user tries to log in again, the system
doesnot permit him to log in for the next 20 minutes.

I tried "onUnload" in HTML to track the closing of the Browser.But I have
frames in my page...so whats happening is that if a page in the frames are
changed, the onUnload event is triggered and the session is getting
invalidated.

       \|||/
        (@@)
 ooO_(_ )_Ooo ________________________________
_____|_____|_____|_____|_____|_____|_____|___|
___|____|_____|_____|_____|_____|_____|_____|
_____|_____   Keep Smiling  - - R@hul|____|_____|_


R@hul Desai
Software Engineer
PSI Data Systems
Bangalore - 560 025.
Victoria Road,
INDIA
Tel: (91-80) 555-4680, 554-3850

___________________________________________________________________________
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