Home >php教程 >PHP源码 >ZF框架Session会话周期及次数限制

ZF框架Session会话周期及次数限制

PHP中文网
PHP中文网Original
2016-05-25 16:59:481757browse


host     = '127.0.0.1';
$Session ->username = 'root';
$Session ->password = '111';
$Session ->dbname   = 'test';
//定义会话过期时间
$Session ->setExpirationSeconds(300);
//定义会话步骤次数
$Session ->setExpirationHops(2 , 'host');
$Session ->setExpirationHops(3 , 'username');
$Session ->setExpirationHops(4 , 'password');
$Session ->setExpirationHops(5 , 'dbname');
?>

                       

            

       

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn