views:

185

answers:

1

Hi there!

I would like to know how to increase the session timeout in symfony. Is it enough to only adjust the symfony configuration settings or must I also configure anything in my php.ini file?

Thanks in advance for the help, Best regards!

+4  A: 

for sf1.0:

Change the value in apps/appname/config/settings.yml:

all:
  .settings:
    timeout:    1800 #session lifetime value in seconds

for sf1.1+:

Add these lines to apps/appname/config/factories.yml:

user:
  class: myUser
  param:
    timeout:    1800 #session lifetime value in seconds
Raise
Hi there!Thanks for the help! Is this configuration enough or some other change needs to be made on php.ini file?Thanks in advance, Best regards!
Rui Gonçalves
This is all you need - symfony manages its sessions independently to the settings in php.ini.
Raise

related questions