开发者

Zend Framework way of dealing with sessions and "remember me"

开发者 https://www.devze.com 2023-03-12 20:12 出处:网络
I read I should increase gc_maxlifetime in php.ini to the same large v开发者_C百科alue (weeks) as the one I\'m telling Zend_Session::rememberMe(). Is this good practice? Is there a reason not to incre

I read I should increase gc_maxlifetime in php.ini to the same large v开发者_C百科alue (weeks) as the one I'm telling Zend_Session::rememberMe(). Is this good practice? Is there a reason not to increase gc_maxlifetime to more than half an hour or so?


it is good practice. if you have many (thousands) site users - you can code custom session handler. for example, to support different directory structure.

like /sessiondir/0/1/5/0152837462938587.sess to minimize server load while reading dir with many files

0

精彩评论

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