Page 1 of 1

ini_set for Session maxlifetime

Posted: Thu Nov 16, 2006 10:03 am
by timclaason
I want to increase the life of a session, so on my initial start, prior to the session_start(), I'm looking to add the following code:

Code: Select all

ini_set("session.gc_maxlifetime","14400");
My question is, if I have multiple pages that do session_start(), do I have to put that ini_set on each of those pages, or just the initial registration of the session?

Posted: Thu Nov 16, 2006 2:28 pm
by feyd
Every single one.