开发者

How to make my 'sessions' to never expire?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜