Blue Horn New Zealand Web Design & Development (PHP 5, MySQL, Symfony Framework, Apache, Linux)

26Mar/104

How to make Symfony session to never timeout

This is for Symfony 1.2 and sfGuardPlugin, but may be relevant for newer versions (1.3, 1.4, etc).

Setting timeout to false in factories.yml should've worked, e.g. like this:

all:
  user:
    class: myUser
    param:
      # this should have worked, but did not
      timeout: false

But it didn't work because I think 'false' did not get parsed as literal false.