I am trying to increase my php session time to 6 hours.
Here is the code to increase the session time:
ini_set(\'session.gc_maxlifetime\', 60 * 60 * 6);
use this
ini_set('session.gc_maxlifetime', 6 * 60 * 60); // 6 Hours instead to this ini_set('session.gc_maxlifetime', 60 * 60 * 6); // 1 Hours ini_set('session.gc_maxlifetime', [hours] * [minutes] * [seconds]);