Session Destory When Close browser

Hi,

How Session Destroy when User Closed browser?

How to Set Session Time?I want to set session destory 2 hours?how to set 2 hours ?

PHP maintains a session in the browser window. So till the browser widndow remained opened session id is set in the session of ur browser. So as soon as browser windows is closed, PHP kills the session

You can set a session timeout using the YII, so that after the given time span, user will be automatically logged out.




'user' => array(

    'class' => 'WebUser',

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

    'allowAutoLogin' => true,

    'authTimeout' => 1800

),