how to call event on session destroy

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

harivallabhshukla
New php-forum User
New php-forum User
Posts: 5
Joined: Tue Jul 16, 2013 2:54 am

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

johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

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/


Return to “PHP coding => General”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest