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:


                                                'errorHandler' => array(

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


                                                'user' => array(

                                                    'class' => 'CWebUser',

                                                    'stateKeyPrefix' => '_codes',




                                                    '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. -



		// enable cookie-based authentication


		'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' => array(


	      'class' => 'CDbHttpSession',

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