Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Session getting destroyed after redirects #105

Open
kuya1284 opened this issue Feb 6, 2014 · 1 comment
Open

Session getting destroyed after redirects #105

kuya1284 opened this issue Feb 6, 2014 · 1 comment
Assignees

Comments

@kuya1284
Copy link

kuya1284 commented Feb 6, 2014

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.

@malyshev malyshev self-assigned this Feb 6, 2014
@razvanphp
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants