You should check the code in cache file and perhaps customize cache
settings.

On 2010.09.15. 15:15, "Dong YANG" <jojoyangd...@gmail.com> wrote:

Hello guys,


I got a strange problem, i am looking for the reason during serval days, but
still cant find it.

The situation is:

I have *a custom filter* who checks users' authentication (pick up user's
cookie and check it), if user is valid, i update the value by
$this->setAuthenticated(*true*);
and then, as *the layout is cached*, so there is a *function javascript *who
calls a method in action file to check if the user is already valid by
($this->getUser()->isAuthenticated()), if user is valid in *the last custom
filter*, the javascript function will update then user's account bloc.

So the custom filter do $this->setAuthenticated(*true*), and JS call actions
to check if use is valid and then update user's account bloc.

The check in filter is ok, i can see '*User is authenticated*' in web debug.
but the problem is, in the action/method, i call
$this->getUser()->isAuthenticated(), it returns always *false*. I don't know
where is wrong. When I deactivate cache, everything is ok. But i am not sure
if there is something wrong in cache config.


Do you think that it is a problem with cache or session ?

Any suggestion is welcome, Thanks a lot!

JoJo






 --
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to