Native

A Slim application does not presume anything about sessions. If you prefer to use a PHP session, you must configureand start a native PHP session with session_start() before you instantiate the Slim application.

You should also disable PHP’s session cache limiter so that PHP does not send conflicting cache expiration headerswith the HTTP response. You can disable PHP’s session cache limiter with:

  1. <?php
  2. session_cache_limiter(false);
  3. session_start();