symfony sf_user attributes disappearing

Notes and reports about symfony 1.0.x stable

Moderators: dwhittle, Ian

symfony sf_user attributes disappearing

Postby 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?
blurmy24
Junior Member
 
Posts: 1
Joined: Wed Aug 03, 2011 9:03 am

Return to symfony 1.0

Who is online

Users browsing this forum: No registered users and 1 guest