开发者

zend_auth cookies?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜