Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

session_cache_limiter error in symfony2.8 with php 7.2

Tags:

I am working on the project which is already build on Symfony. The versions and server details are as below

PHP: 7.2

Webserver: apache 2.4.6

Symfony: 2.8.1.1

I am getting below warning while initializing new session on my controller. This issue comes only when I am working on debugger mode(app_dev.php) not on production environment.

"Warning: session_cache_limiter(): Cannot change cache limiter when session is active"

I have gone through the issue over google and seen that it is core PHP warning.

How can we solve this with symfony 2.8 version?

like image 887
Nikhil Joshi Avatar asked Oct 31 '18 09:10

Nikhil Joshi


1 Answers

It seems somewhere in the framework session_cache_limiter() is called after session_start(). It should be called before.

like image 183
Vrajesh Doshi Avatar answered Nov 15 '22 04:11

Vrajesh Doshi