I am working on symfony 1.0 and to set a variable value into the session, we usually do is:
$this->getUser()->setAttribute('method', 'ajax');
But this will not work if no user session is set.
I want to set a variable into the session so that even after many redirects or untill I manualy clear it, it should be available to use.
This $this->setFlash('attrib', $value);
will erase out once made an another request.
How can this be seen in symfony- I mean having a variable in session untill it is cleared manually.