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 Dieding@xrow.de

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?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 01:01:11
Script start
Timing: Jan 19 2025 01:01:11
Module start 'layout'
Timing: Jan 19 2025 01:01:11
Module start 'content'
Timing: Jan 19 2025 01:01:12
Module end 'content'
Timing: Jan 19 2025 01:01:12
Script end

Main resources:

Total runtime0.9125 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 590.1484152.6094
Module start 'layout' 0.00690.0039 742.757839.4297
Module start 'content' 0.01080.8999 782.1875589.0234
Module end 'content' 0.91070.0017 1,371.210912.1953
Script end 0.9124  1,383.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3737160.0002
Check MTime0.00130.1446160.0001
Mysql Total
Database connection0.00160.176810.0016
Mysqli_queries0.856593.8694620.0138
Looping result0.00080.0825600.0000
Template Total0.876196.020.4380
Template load0.00210.230520.0011
Template processing0.874095.783420.4370
Template load and register function0.00030.030510.0003
states
state_id_array0.00100.112510.0010
state_identifier_array0.00150.167820.0008
Override
Cache load0.00170.1823260.0001
Sytem overhead
Fetch class attribute can translate value0.00090.097430.0003
Fetch class attribute name0.00110.122660.0002
XML
Image XML parsing0.00130.147330.0004
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00100.1095210.0000
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs