yii-debug-toolbar icon indicating copy to clipboard operation
yii-debug-toolbar copied to clipboard

Session getting destroyed after redirects

Open kuya1284 opened this issue 11 years ago • 1 comments

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.

kuya1284 avatar Feb 06 '14 03:02 kuya1284

:+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.

razvanphp avatar Mar 26 '14 18:03 razvanphp