yii-debug-toolbar
yii-debug-toolbar copied to clipboard
Session getting destroyed after redirects
I just updated to the latest version, and noticed that whenever I redirect a page, my session gets destroyed. I've narrowed down the problem to the YiiDebugToolbarPanelRequest::run() method; more specifically, with $_SESSION. When I remove $_SESSION and set the "session" context value to null, everything works as expected. Of course, I had to make a few minor changes to a couple views by checking if $session is not empty and is an array, but disabling the Session Attributes request panel solves my problem.
I even added a check to see if session_id() is an empty string right before rendering the panel, but the problem still persisted. Any ideas what might be causing this issue? I do have auto start off for my session handler.
:+1: +1
I lost the entire day trying to find out why this is happening. The strange thing for me is that on Chrome everyting is ok, so the problem was only Firefox.