Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

auto logout when user click on X on top right

Status
Not open for further replies.

ryan1982

Technical User
Jan 20, 2002
38
SG
i've had a problem with logout using asp

situation:

i used a field in the database called "logon" with "yes/no" variable

everytime the user logs in the variable is changed to
login = true

and everytime the user logs out the varible is changed
to login = false

but if the user clicks on the X(top right) in internet
explorer and does not logout,
the login variable remains as true and he/she is not able to login again

i've read a function called window.close but i had probs
using this function ..

i need some help on functions which will be called when the
user click on the X(top right) button in IE
so i can automatically log them out.

i'm just a beginner using asp so pls dun give some
complicated functions or coding , i may not understand them
:)
thanks in advance
 
I guess you could add some code to the Session_OnEnd event in the global.asa file... This is not a bug - it's an undocumented feature...
;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top