neridaj Posted April 21, 2008 Share Posted April 21, 2008 Hello, How do I redirect a user when the session has timed out? It never seems like my sessions timeout e.g., I can always comeback and resume where I left off instead of being redirected when a session has timed out. I know the default time is 20 minutes, but I don't know how to implement a redirect based on that. Thanks for any help, Jason Link to comment https://forums.phpfreaks.com/topic/102085-session-timeout-and-redirect/ Share on other sites More sharing options...
delickate Posted April 21, 2008 Share Posted April 21, 2008 check this out man if(Session.Timeout) echo "<script>window.location.href='index.php</script>'"; Link to comment https://forums.phpfreaks.com/topic/102085-session-timeout-and-redirect/#findComment-522621 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.