开发者

Symfony session to php session

I'm using symfony1.4 with doctrine I have php file which i displayed inside the iframe. i have a session value inside symfony using setAttribute i want to use this in my php file inside the iframe. but how do i pass or u开发者_如何学Cse the session variable


Symfony's session mechanism is built on top of php's - it hides manipulating the $_SESSION superglobal behind the myUser clas - meaning that everything you put in the session is also available for another script via the aforementioned superglobal.

In your other script do a var_dump($_SESSION) after calling session_name with a matching name of symfony's session and session_start and you will see where your variables are.

With a quick check of sfUser's source I believe all your attributes will be in the symfony/user/sfUser/attributes "namespace" - whatever that means.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜