I have been researching online, but could not find the answer. In Symfony2, I understand that one can statically set the session lifetime through the config.yml
file.
However, I need to be able to set the lifetime of the session based on certain situations in my code. Is it possible to programmatically set the session lifetime?