ZF框架Session会话周期及次数限制
程序员文章站
2022-04-26 23:45:48
...
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'); ?>