Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

how to call event on session destroy

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

how to call event on session destroy

Postby harivallabhshukla » Sun Jul 21, 2013 4:47 am

how to call particular event on session destroy,for example if user logout as usual then my code update database but if user forgot to logout then how can i update database on session destroy
harivallabhshukla
New php-forum User
New php-forum User
 
Posts: 5
Joined: Tue Jul 16, 2013 2:54 am

Re: how to call event on session destroy

Postby johnj » Sun Jul 21, 2013 9:28 pm

trap the browser close or tab close event and then use ajax to update the database
http://eureka.ykyuen.info/2011/02/22/jq ... sed-event/
johnj
php-forum Super User
php-forum Super User
 
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm


Return to PHP coding => General

Who is online

Users browsing this forum: Google [Bot] and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.