colemanm Posted March 8, 2006 Share Posted March 8, 2006 Hi,On a site I'm developing (sorta gettin' the hang of PHP still...), I've got a full user authentication method set up, but I'm looking for a way to have an idle session expire after X minutes. I then want to have it so on the next browser event (refresh, page load, etc), the user will be redirected to the login page, and after re-entering credentials, be redirected back where they were (i.e. their account page). This sounds like it shouldn't be to difficult, I was just looking to see what the easiest method would be.Thanks,- Coleman Quote Link to comment https://forums.phpfreaks.com/topic/4449-looking-for-a-little-advice-on-sessionsauthentication/ Share on other sites More sharing options...
XenoPhage Posted March 8, 2006 Share Posted March 8, 2006 [!--quoteo(post=352898:date=Mar 8 2006, 12:04 PM:name=Coleman McCormick)--][div class=\'quotetop\']QUOTE(Coleman McCormick @ Mar 8 2006, 12:04 PM) [snapback]352898[/snapback][/div][div class=\'quotemain\'][!--quotec--]Hi,On a site I'm developing (sorta gettin' the hang of PHP still...), I've got a full user authentication method set up, but I'm looking for a way to have an idle session expire after X minutes. I then want to have it so on the next browser event (refresh, page load, etc), the user will be redirected to the login page, and after re-entering credentials, be redirected back where they were (i.e. their account page). This sounds like it shouldn't be to difficult, I was just looking to see what the easiest method would be.Thanks,- Coleman[/quote]Here, check this out.. I think this does what you want : [a href=\"http://www.godshell.com/oss/secure-login.tar.gz\" target=\"_blank\"]Secure Login Code[/a] Quote Link to comment https://forums.phpfreaks.com/topic/4449-looking-for-a-little-advice-on-sessionsauthentication/#findComment-15455 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.