0
我使用core.php中此配置:CakePHP的session.cooke_lifetime不起作用
Configure::write('Session', array(
'defaults' => 'php'
));
Configure::write('Session.save', 'custom_session_handler');
/**
* The level of CakePHP security.
*/
Configure::write('Security.level', 'high');
而且custom_session_handler.php(在app /配置)
<?php
ini_set('session.cookie_lifetime', 0);
?>
當我關閉瀏覽器會話應該被銷燬/不記得 - 但它不起作用,當我關閉瀏覽器時,我仍然登錄...
我在我的電腦上使用Auth組件,cakePHP 2.0,php 5.3.9在WAMP服務器上。 而且在我的php.ini Session.cookie_lifetime被默認設置爲0