Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有一种简单的方法可以在 Symfony 1.4 中延长 sfDoctrineGuard 的登录会话长度?我认为它目前在 30 分钟内超时,但希望让它更长。
谢谢
在sf_root_dir/apps/<app>/config/factories.yml:
sf_root_dir/apps/<app>/config/factories.yml
user: class: myUser param: timeout: 1209600 # example: 2 weeks
希望这会有所帮助。
更新:想出了一个适合我需要的解决方案:对于某些类型的登录,默认情况下将“记住我”过滤器设置为 true。在这种情况下,它是一个过于激进地超时的 CMS。
解决。