Jump to content

Archived

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

localhost

session expire?

Recommended Posts

I need to make it so if a session isn't active, it will expire after 20 minutes or so...

although if they are browsing through the pages with session_start();, it will stay active.

Share this post


Link to post
Share on other sites
You could try inserting the following line into your .htaccess file:

php_value session.gc_maxlifetime 1200

Share this post


Link to post
Share on other sites
or you can use ini_set i believe:
[code]ini_set('session.gc_maxlifetime', 1200);[/code]

Share this post


Link to post
Share on other sites

×

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.