ez projects / ezvlogin / forum / general / user login - logout redirec...
You need to be logged in to post messages in the forums. New users may register here.
|
Member since: Posts: 2 |
Saturday 07 March 2009 12:40:04 am Hi all,
This is a great extension but once I found it I wonder if it will handle my endless karma : Redirection. All proxy sites have problems with the LastAccesUri Session variable, because many templates are cached on the proxy and once one user login, this session variable will be kept on proxy cache so all users from here on will be redirected to the cache session after login variable. I have tried many things but they don't have the desired results: 1. Sending redirect url to the user/login module based on GET parameters For example: user/login?redirect=yourredirect But if you make a mistake in login user or password the GET parameters will be lost on redirection. Of course template ttl=0 to user/login and the cache-control=no-cache on the headers 2. Setting a new session variable based on ajax changing. Once the page loads I send the current URL to an ajax module to set a new session var iable and I read this session variable on the /user/login template. Of course template ttl=0 to user/login and the cache-control=no-cache on the headers. The problem with this one is that is works randomly...I dont know why please suggestions. Any help is accepted... Felipe Jaramillo |
|
Member since: Posts: 170 |
Thursday 19 March 2009 11:54:48 am approach 1 would be best, just make sure you also set the get parameter in the user/login template so it is not lost when you have to re type user / password.
And Varnish must not be setup to strip get parameters from cache object (if you cache the user/login page). Lead Engineer eZ Publish |
You need to be logged in to post messages in the forums. New users may register here.