简体   繁体   中英

Zend Framework way of dealing with sessions and “remember me”

I read I should increase gc_maxlifetime in php.ini to the same large value (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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM