Forums / Setup & design / Logout problem

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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 X

Monday 17 May 2004 3:53:30 am

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

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?