how to call event on session destroy

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
harivallabhshukla

how to call event on session destroy

Post by 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

Post by 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/

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest