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 ?
Page 1 of 1
Session Destory When Close browser
#2
Posted 24 March 2015 - 06:12 AM
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.
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 ),
Share this topic:
Page 1 of 1