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
|