Forums / Setup & design / Logout problem

Logout problem

Author Message

akiL Mussa

Monday 17 May 2004 2:30:51 am

Hi,

I have the folowing code on my pagelayout.tpl. The problem is that when I click to logout the link "logout" still appear on the page with the login form. The variable <b>$current_user.is_logged_in</b> still <i>true</i>.

    <div id="login">

    {section show=eq($current_user.is_logged_in)}
    	<a class="login" href={"/user/login"|ezurl}>Login</a>
    {section-else}
    	<a class="login" href={"/user/logout"|ezurl}>Logout</a> ( {$current_user.contentobject.name} )
    {/section}

    </div>

In my site.ini I have the following settings:

[SiteSettings]
LoginPage=embedded

[SiteAccessSettings]
RequireUserLogin=true

[UserSettings]
LogoutRedirect=/user/login

Björn [email protected]

Monday 17 May 2004 3:53:30 am

make sure you don't use any cache blocks around it

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Kåre Køhler Høvik

Tuesday 18 May 2004 12:59:55 am

Are you using PHP 4.2.2 or older ?

--
Kåre Høvik

Kåre Høvik

akiL Mussa

Tuesday 18 May 2004 1:27:49 am

Hi, thanks for your reply,

Björn, I don't have any cache block on the template.

Kåre, I'm using PHP 4.2.2

Is there a problem with this version?