Symfony 1.4 Session vs $_SESSION Issues

丶灬走出姿态 提交于 2019-12-11 11:27:57

问题


I have a strange behavior when i'm working on my development Installation( Ubuntu 12.04 Firefox ). I store values into my Session like this in a Component Class(..Components.class.php) : $this->getUser()->setAttribute("ns1", myarray(), "globalNameSpace");

When this Controller is called i see into Debug Modus that User Session is set, but Globals Session($_SESSION) is not set, then i can't accessed the Session for example with $sf_user->getAttribute(...) . I should reload the whole Page to see Globals Session($_SESSION) changes happened and then $sf_user->getAttribute(...) work. I should mention that i used under linux(ubuntu) the last Firefox and Chrome... i used the both into anonymus Tab too... but the problems still occured.

Is this a Settings Problems with factories.yml or just a symfony Bug?

Edit: The Controller is called through an ajax... maybe is this a problem too...

Edit2: I cannot Set User Session. In my factories.yml i have no session set. So into Dev i'm always cant set a session value! I think all my session is protected.

来源:https://stackoverflow.com/questions/11898511/symfony-1-4-session-vs-session-issues

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!