maximebf / atomik

Micro framework for PHP 5.3+ [UNMAINTAINED]
MIT License
46 stars 18 forks source link

Session ID constantly regenerating with Errors plugin #45

Closed GilDev closed 9 years ago

GilDev commented 9 years ago

Hey, I have another issue. Same configuration, Nginx on a Raspberry Pi. When the Errors plugin is activated with the catch_errors key set to true, each page reloading or page change creates a new session ID and all informations are lost (they are still in /var/lib/php5 but never used anymore`). When set to false, it just works normally. This problem don't happen in a MAMP environment. Any thoughts on this? Thanks!

GilDev commented 9 years ago

Okay I found the problem. In my error.phtml view, I had this code:

<?php

Atomik::redirect('errors/404');

When I remove it, it's working great again. Weird bug…