Entry
how can a session be destroyed when user closed window without logging out?
but what if the session is closed because of a network problem
Mar 28th, 2008 22:06
dman, ha mo, Evil Tomato, sh, Siyamed SINIR, elco nomeno, http://www.ttnr.org
ey !
you can use the session related commands such as:
session_destroy() or session_end()
Check the PHP manual before posting such idiot questions god damn !#&
-sh
er, I don't think that was the question... if the user closes the
window without logging out, then you can't run the session_destroy()
command... I would do one of those nasty popup windows (eg, javascript)
make a very simple php script that says <?php session_start();
session_destroy(); ?> and put that in an onClose() javascript event.
-eT