Jump to content

Looking for a little advice on sessions/authentication


colemanm

Recommended Posts

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
Link to comment
Share on other sites

[!--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]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.