how to call event on session destroy

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply

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

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

Sun Jul 21, 2013 9:28 pm

trap the browser close or tab close event and then use ajax to update the database ... sed-event/

Post Reply