is there any possibility to use PHP sessions in Slim v3? If not, what's a good replacement? And if I can use them, where I should put session_start(), on index.php or in files I'm using $_SESSION variables?
You can use $_SESSION
within a Slim application with ease. Put session_start()
at the top of index.php.
Alternatively, there are a number of PSR-7 session middleware components out there such as: