Jump to content

PHP Sessions


thehoster

Recommended Posts

Hello All,

 

Is there a way i can auto logout a client out of his/her account after so many minutes of inactivity the current code im using in configuration.php is

 

ini_set('session.cookie_lifetime', 60);

 

But its not working, could anyone advise the number "60" relates to seconds and not minutes, should anyone wish to know i put it to 60 seconds so i would be able to test it. But after waiting a minute and re-visited a cookie stored page it still was logged in so i assumed it was not working.

 

Any assistance with this would be greatly appreciated.

Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated