session_cache_limiter error in symfony2.8 with php 7.2 session_cache_limiter error in symfony2.8 with php 7.2 symfony symfony

session_cache_limiter error in symfony2.8 with php 7.2


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


Who face this issue. Please do the below checks in the system. 1. Check if anywhere in Yaml files have we set cache_limiter. The default have to be zero.

parameters:    session.storage.options:        cache_limiter: 0
  1. In the flow also have a check if Session is getting set somewhere other than Autoload.

https://symfony.com/doc/2.8/components/http_foundation/sessions.html

  1. The most important is DO NOT USE session_start use Symfony's session->start.

In our application being legacy one It was found that at many places session_start was used. Thus as correctly said by @vrajesh session_start was being used.