View Single Post
Old 23-04-2007, 11:40   #1 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
ini_set for session timeouts

I need to change session timeouts in PHP. A bit of Googling has suggested this method:

Code:
ini_set("session.gc_maxlifetime", TIME_IN_SECONDS_HERE);
Is this my best bet? Where should I put this line - I have a config file or maybe in my login script? You tell me!

Note: site is running on IIS, not Apache.
  Reply With Quote