Yii login authTimeout & absoluteAuthTimeout not working

Hi for some reason my app will not logout after the authTimeout or absoluteAuthTimeout has passed. Can anyone suggest what the issue might be?

Here is the code in my module:




   Yii::app()->setComponents(array(

                                                'errorHandler' => array(

                                                    'errorAction' => 'codes/default/error',

                                                ),

                                                'user' => array(

                                                    'class' => 'CWebUser',

                                                    'stateKeyPrefix' => '_codes',

                                                    'allowAutoLogin'=>true,

                                                    'authTimeout'=>20,

                                                    'absoluteAuthTimeout'=>40,

                                                    'loginUrl' => Yii::app()->createUrl('codes/default/login'),

                                                ),));

You enabled ‘allowAutoLogin’. Accès might be restored from the cookie.

How do you call


	public function login($identity,$duration=0)

yes I have this set

Just set in authTimeout & session timeout components arraye in config file.

eg. -


'components'=>array(

	'user'=>array(

		// enable cookie-based authentication

		'allowAutoLogin'=>true,

		'autoRenewCookie' => true,

		'authTimeout' => 86400, //kills session after 24 hours just in case above fails or if a user clicks remember me it will only last for this duration.

		'loginUrl' => array('site/login'),

	),

		

	//Session

        'session' => array(

              'autoStart'=>true, 

	      'class' => 'CDbHttpSession',

	      'timeout' => 1200, //here set session timeout

         ),

)