Jump to content

Session cookie time


jaymc

Recommended Posts

If i set the session cookie to expire in 30 minutes rather than when the browser is closed, does that mean from the moment they login they will loose their session in 30 minutes

Or, is it 30 minutes after they have stopped viewing pages

In otherwords, everytime the view a page does that start the 30 min countdown again?
Link to comment
https://forums.phpfreaks.com/topic/33925-session-cookie-time/
Share on other sites

Is that the best way to do it?

Because on my site the sessions are dying randomly

Im just wondering if for some reason the browser thinks its been closed

The solution though could be to set session expire time to 30 minutes..

However, what happens if someone closes the website and then their friend opens it again in 15 minutes time

Essentially, they will then be logged in as them, right?

Thats what im worried about
Link to comment
https://forums.phpfreaks.com/topic/33925-session-cookie-time/#findComment-159281
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.