How can I destroy sessions if user closes the browser window or navigates away from page in php?

Posted by Chris on Stack Overflow See other posts from Stack Overflow or by Chris
Published on 2010-03-21T02:23:23Z Indexed on 2010/03/21 2:31 UTC
Read the original article Hit count: 352

Filed under:
|
|

I have some sessions that are saved. I want to destroy all the sessions if the user closes the browser window or a single tab or navigates away from the page. Is there any way I can do this?

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript