i am stucked, i am working on Projects hotbartendersla
i have used a lot of sessions to process data in event booking, now i want to destroy the session when user closed the window/tab of browser,because when ever i open site the selection remains same as i did.
i have used this
<script type="text/javascript">
window.onbeforeunload = function() {
$.post("mysessionsdestroypage.php",function(data){
});
}
</script>
but when i jumped to on step 2,step 3, my sessions are destroyed and data don't reached on step 4. i searched alot but i found no reliable solution for this
First of all Set Session time out on the page where you want to clear Sessions