Jump to content


Photo

session expire?


  • Please log in to reply
2 replies to this topic

#1 localhost

localhost
  • Members
  • PipPipPip
  • Advanced Member
  • 152 posts

Posted 21 July 2006 - 07:09 AM

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.

#2 chrisprse

chrisprse
  • Members
  • PipPipPip
  • Advanced Member
  • 39 posts
  • LocationUnited Kingdom

Posted 21 July 2006 - 09:30 AM

You could try inserting the following line into your .htaccess file:

php_value session.gc_maxlifetime 1200

#3 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 21 July 2006 - 09:52 AM

or you can use ini_set i believe:
ini_set('session.gc_maxlifetime', 1200);





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users