0

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 use the session variable

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.