This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

symfony sf_user attributes disappearing

Notes and reports about symfony 1.0.x stable

symfony sf_user attributes disappearing

by blurmy24 » Wed Aug 03, 2011 9:05 am

I've inherited a small symfony project that's causing a big headache. On the live site, I enter the following into preExecute in apps/frontend/modules/top/actions/actions.class.php:

Code: Select all
$this->getUser()->setAttribute('foo', 1);

I then load the page. Then I replace that line with the following:

Code: Select all
error_log($this->getUser()->getAttribute('foo', 0));

I reload the page and, as expected, I see a 1 in the error log. On our dev site, however, the same actions spit a 0 into the error log. $_SESSION vars seem to disappear as well. I'm not a symfony expert and I have no idea how to track this down. Suggestions?
Junior Member
Posts: 1
Joined: Wed Aug 03, 2011 9:03 am