我应该只在25分钟到30天之间调整session_set_cookie_params()的** new thoughts **should I only adjust the cookie_timeout值,如果用户设置了记住我的偏好。并且仅针对保持登录首选项的cookie_timeout value for session_set_cookie_params() from 25min to 30 days if the user sets the ''remember me'' preference. And use the setcookie() expire time only for a login_status变量使用setcookie()过期时间?因此,login_status variable in regards to the ''stay logged in'' preference? Therefore, the 这篇关于保持登录状态记住我 - PHP会话和cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-21 17:14