开发者

sfDoctrineGuardPlugin - increase session time

开发者 https://www.devze.com 2023-04-04 09:05 出处:网络
I am developing a site using sfDoctrineGuardPlugin and I was wondering if there is a way to increase the time that someone is l开发者_JAVA技巧ogged in before they are signed out?

I am developing a site using sfDoctrineGuardPlugin and I was wondering if there is a way to increase the time that someone is l开发者_JAVA技巧ogged in before they are signed out?

I would like to increase the time that the session is stored when a user is logged in, but is idle, but cannot seem to find the right place in the plugin to increase this.

Thanks


The default configuration for the sfUser class is like this:

  user:
    class: myUser
    param:
      timeout:         1800
      logging:         %SF_LOGGING_ENABLED%
      use_flash:       true
      default_culture: %SF_DEFAULT_CULTURE%

(found in lib/vendor/symfony/lib/config/config/factories.yml).

You can override this in your own application, by adding something like this to your apps/app/config/factories.yml:

  user:
    class: myUser
    param:
      timeout:         3600

I expect the timeout to be in seconds.

0

精彩评论

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

关注公众号