Hello. I have a little problem in Symfony.
The short question is: how could I update the user session inside a
cached action?
And the long question is:
I have an action that is cached. Inside this action I have a portion
of code that updates the user session.
The solution I have found is this (briefly):
public function executeIndex($request)
{
... here I update the session
$this->forward('home', 'home');
}
public function executeHome($request)
{
........ my code
}
Using this workaround, I cache only the Home action, letting the Index
to update the session.
What I don't like about this is that each time it is called, it
executes 2 actions.
Do you figure out some other better solution?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---