开发者

How to make my 'sessions' to never expire?

开发者 https://www.devze.com 2023-04-07 01:09 出处:网络
I\'m using Zend Framework. I want to do something similar to SO, when you are not a registered user开发者_JS百科, you keep your account as long as you remove all your cookies.

I'm using Zend Framework.

I want to do something similar to SO, when you are not a registered user开发者_JS百科, you keep your account as long as you remove all your cookies.

I know that session <> cookies, however what will be the best way to do that?

By the way, I'm using memcached because I plan to share sessions between frontend.

Is there any recommendations about this? because memcached data are volatile.

May I need to store them in a database instead?


A possible solution could be calling Zend_Session::rememberMe() in each request, once you have checked that the user is authenticated.

Hope that helps,

0

精彩评论

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

关注公众号