Lose current user in module

Author Message

Jean-Luc Nguyen

Thursday 20 August 2009 2:49:03 am

Hello there,

I have something weird, on a template, I have a link to a module. This module loses the current user I am connected with. I don't know if I miss something but it's strange.

If anyone had this problem and know how to solve it, it would be great, thanks!

http://www.acidre.com

André R.

Thursday 20 August 2009 5:32:24 am

define:
lose, is he logged out?
module, witch module, if custom, what do you do in there?
link, how does the link look like?

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Jean-Luc Nguyen

Thursday 20 August 2009 5:49:34 am

Hello André,

Forget about the module, I have something strange.
The version is 4.0.1.

I have 3 main nodes, A, B and C, all standard sections, except C which children nodes are C section.
I have a customer class, which role can read standard and C sections.
The login form is on C node, current user is a customer class.
But when I go to A & B nodes, current user is anonymous (logout).

I think I miss something but I don't know what.

Thanks a lot for your help!

http://www.acidre.com

Jean-Luc Nguyen

Thursday 20 August 2009 6:55:11 am

OK so sorry, there was a hack from another developer to remove cookie in index.php for a cache issue with varnish, so the current user is anonymous.

http://www.acidre.com

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 18 2025 19:22:29
Script start
Timing: Jan 18 2025 19:22:29
Module start 'layout'
Timing: Jan 18 2025 19:22:29
Module start 'content'
Timing: Jan 18 2025 19:22:30
Module end 'content'
Timing: Jan 18 2025 19:22:30
Script end

Main resources:

Total runtime0.7030 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00010.0073 587.9141152.6250
Module start 'layout' 0.00730.0033 740.539139.4453
Module start 'content' 0.01060.6910 779.9844557.1719
Module end 'content' 0.70160.0014 1,337.156312.1641
Script end 0.7030  1,349.3203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5177160.0002
Check MTime0.00160.2253160.0001
Mysql Total
Database connection0.00100.146610.0010
Mysqli_queries0.641691.2610600.0107
Looping result0.00070.0987580.0000
Template Total0.654493.120.3272
Template load0.00220.309120.0011
Template processing0.652292.771620.3261
Template load and register function0.00010.014810.0001
states
state_id_array0.00400.566010.0040
state_identifier_array0.00190.276720.0010
Override
Cache load0.00180.2592270.0001
Sytem overhead
Fetch class attribute can translate value0.00070.102020.0004
Fetch class attribute name0.00120.170060.0002
XML
Image XML parsing0.00110.159620.0006
class_abstraction
Instantiating content class attribute0.00000.002480.0000
General
dbfile0.00110.1577230.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0004 secs