Session or anything else require close window event?
Hello,
i m working on Live Support Script, when user login i did make entery in DB using some information related to user, now i wana to handle if user close window just run logout.php automaticaly... how can i do this ?
i try this with javascript onUnload as well but not working well...
if it's live i assume you're using some type of javascript or flash.. have a sort of ping every 5 seconds.. if no information is handled in 10 seconds they are logged out
if it's live i assume you're using some type of javascript or flash.. have a sort of ping every 5 seconds.. if no information is handled in 10 seconds they are logged out
1st of all fie thx 4 replying yes it's live chat script, yes it got your point but how can i ping user in php ? please let me know ? ...