Skip to content

Check for session existence before using it

Compare
Choose a tag to compare
@bobvandevijver bobvandevijver released this 05 Sep 10:22
· 6 commits to master since this release
Check for session existence before retrieving it

Calling "getSession()" when no session has been set is deprecated since Symfony 4.1 and will throw an exception in 5.0. Use "hasSession()" instead.