Forums / Developer / Problem with Login after Logout

Problem with Login after Logout

Author Message

Femar Group

Wednesday 30 March 2005 4:10:39 am

I've a problem with session cache in eZ 3.5.0:
in the user interface i'm logged in as User1, if i try to log-in as User2 (after logout) in the pagelayout current_user is User2 but in the content page is User1.
If i clear all caches before log-in i've no problem.
I don't use cache-block or similar.
Where is the problem?

Lex 007

Wednesday 30 March 2005 4:16:15 am

I got the same problem and I have noticed it happens only in embedded templates (tpl included in another tpl ...). I don't have this problem in the "main" pagelayout.tpl

The dirty workaround I found was to disable cache at the beginning of the embedded template.

{* DISABLE CACHE FOR THIS PAGE *}
{set-block scope=root variable=cache_ttl}0{/set-block}

Lex

Femar Group

Wednesday 30 March 2005 5:48:30 am

I've problem with the template shown by module_result.content, is not an include.

Lex 007

Wednesday 30 March 2005 6:26:43 am

Ooops you are right : in fact the problem is happening in module_result.content for me as well.

So does anyone have a solution ?

Nathan Kelly

Wednesday 16 November 2005 5:31:01 pm

I'm having this problem on 3.6.0 aswell, did anyone find a solution for this?

Cheers!

Pardon me while I burst into flames...