user3818576 user3818576 -4 years ago 52
PHP Question

How to redirect to login page when session out using fosuserbundle?

I'm using fosuserbundle for login page in symfony 3. I'm studying their documentation (link) and follow their instructions. I have already a login form. It work fine when login, but there is no sample here that will limit the session timeout and then will redirect to login page if session is out. I don't know if there are configuration that need to work this, I don't want to use the native PHP session like this one

session_start();


It will be glad if you have tutorials that will guide me on how to work in this problem.

Answer Source

You can define the lifetime in your configuration, like in the symfony documentation

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download