开发者

zend_auth cookies?

开发者 https://www.devze.com 2023-01-30 15:19 出处:网络
I\'ve created a simple login system and it works so far but I want the sessions to be remembered even afte开发者_如何学JAVAr the browser is closed. Does Zend have something for this? I can\'t seem to

I've created a simple login system and it works so far but I want the sessions to be remembered even afte开发者_如何学JAVAr the browser is closed. Does Zend have something for this? I can't seem to find it. What would be the best way to do this? With XSS in mind ;)

Thanks!


You can control session cookies lifetime with Zend_session options:

  Zend_Session::setOptions(array('remember_me_seconds' => 864000))

The would make session and thus login information persist for 10 days.

0

精彩评论

暂无评论...
验证码 换一张
取 消