I have an AJAX worker they is called a API url every second. After 250-300 seconds, I don't get a valid response or a profile-token in case of the user was logged out. I have already configured the
I've found an answer for my question by myself.
You need to configure the
gc_maxlifetime. For example:
session: cookie_lifetime: 0 gc_divisor: 10000 gc_probability: 1 gc_maxlifetime: 604800
After this configuration in your
config.yml the chance that your session expire (because you have set
cookie_lifetime to a specific time) is equal to zero.
Also have a look to the Symfony documentation of sessions: http://symfony.com/doc/current/reference/configuration/framework.html#session