Wolftousen Posted January 22, 2009 Share Posted January 22, 2009 I'm new to php, but not to programming, and i'm using very basics of sessions to manage a user being logged into my site. When testing it, everything works until I move away from my site. I would like the session to be destroyed if you navigate away, is there an easy way of doing this without using javascript (i'm trying to make my site javascript-less for those who chose not to have scripts enabled)? Link to comment https://forums.phpfreaks.com/topic/141998-session-destroy-on-navigate-away/ Share on other sites More sharing options...
trq Posted January 23, 2009 Share Posted January 23, 2009 is there an easy way of doing this without using javascript No. PHP is server side so has no way of knowing you have moved away in the browser without some client side (javascript) event being triggered to send a message to the server. Link to comment https://forums.phpfreaks.com/topic/141998-session-destroy-on-navigate-away/#findComment-743941 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.