User Authentication Timeout

When editing some records in my Yii application it can take 45 or more minutes before filling in all the required fields. Sometimes when saving the user is returned to the login page and their data is not saved. How do you extend the logged in user time?

I tried adding:

‘session’ => array(

 'timeout' => 3600,

),

to config/main.php - but it made no difference. Thank you.

The reason for this could be another application that stores the sessions to the same path. From the PHP manual about session.gc_maxlifetime (that’s what you set with the timeout above):

Therefore i usually create a protected/var/sessions folder in my apps:





'session'=>array(

    'sessionName'=>'YOURAPPSID',

    'savePath'=>dirname(__FILE__).'/../var/sessions',

    'timeout'=>3600,        // Session data can be cleared after this time

),



Maybe this should be added to the default configuration for Yii?