0

i set the session from javascript in my template twig so

sessionStorage.setItem('ids', ids);

how do I access $ _SESSION key value from controller? i just try

$this->get('session')->get('ids') 

without result

thanks!

1
  • Your question is an XY-problem: you should explain the real task, since the question as it is asked at the moment does not make much sense. Commented May 19, 2015 at 21:57

1 Answer 1

4

It's not possible.

sessionStorage is a temporary client-side storage and (default) symfony2 session storage is a temporary server-side storage.

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.