Hi ,

We can destroy The session by Going to another page set it to session_destroy() working no problem
but sometime the user may not click on logout it may close the window
so i want to add this event when he close the window the session will be destroyed !
i just think that we have to do it onUnLoad Event using JavaScript but Tried with no luck !

Thanks !