When i activate the security in:

security.yml

default:
  is_secure: on

and enable the login form:

.actions:
    login_module:           user   # To be called when a non-
authenticated user
    login_action:           login     # Tries to access a secure page

the cache for every module is shared, this means, when i do try to
connect to the webpage and i'm not logged in, the login form is shown
and cached with the homepage cache id, so when i submit the form and
validate the user i come back to the homepage, but since the homepage
id is the login form cached before, the login form keeps showing.

I tried to enable the contextual cache and to disable the cache in the
user/login inside the user module folder but it keeps caching the
login form, just because for him we are in the homepage although we
are showing the login thing.

A real example , if i'm not authenticated and try to acceed to this
url:

http://mysymfonyproject/en/newsid/1/mytitle.html

beacause i'm not authenticated the system redirects to the login
module/action which shows the login form to authnticate, because of
is_secure is on,
but the problem is that for the url :
http://mysymfonyproject/en/newsid/1/mytitle.html symfony are
generating the cache and inserting the login form for this url.

So when i log in, and try to see again the url:
http://mysymfonyproject/en/newsid/1/mytitle.html

the cache is shown and instead of having the content of my new i have
the previous login which is cached :(

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to