Cakephp v 0.2.9 session expires after 24 minutes

95 views Asked by At

Cakephp v 0.2.9 session expires very quickly. It expire after every 24 minutes. I set i to 36 hours an cakephp config file and php.ini but both didn't work. Here is config file setting.

Configure::write('Session', 
  array( 'defaults' => 'php', 
         'timeout' => 1296000, 
         'cookieTimeout' => 1296000, 
         'ini' => array( 'session.gc_maxlifetime' => 1296000, 
                         'session.cookie_lifetime' => 1296000, 
                          'session.cache_expire' => 1296000 
                        ) 
          ));

and here is php.ini I amusing godaddy linux business hosting. Can you please help me out.

1

There are 1 answers

0
Kailash On

You need to create a new .user.ini file in the webroot directory with the following content:

session.gc_maxlifetime=8600