Session Variable in php

I have web pages on a local intranet which are used by different users in the office.  

Some forms require the user to do research then input the data.  If the user waits to long between requests the session variable expires.  I think.  I takes them back to a login.

When would I tell php not time time out the session variable?

In the php.ini file?
LVL 3
jmsloanAsked:
Who is Participating?
 
VoteyDiscipleConnect With a Mentor Commented:
You can do it in the php.ini file, or you can call ini_set('session.gc_maxlifetime', 3600);

3600 being 60 seconds * 60 minutes.  You can use any value you want.
0
 
Mark GilbertSenior Performance EngineerCommented:
Additionally, you can change the session paremeter in your php.ini file.  That would then ensure that it's system wide, and not script specific.
0
All Courses

From novice to tech pro — start learning today.