keeping the SESSION ?

Author Message

François Xavier Lacroix

Tuesday 18 October 2005 5:47:41 am

Hello,

Once in my Ezpublish site, i make a link in another php page that is not related to ezpublish.
However, i would like to get the information about the Ezpublish user that was logged.

So i went to index.php to see how i could activate the session manually.

include_once( "lib/ezutils/classes/ezsession.php" );
EZsessionstart();
include_once( "kernel/classes/datatypes/ezuser/ezuser.php" ) ;
$currentUser =& eZUser::currentUser();

But i still get nothing in the session... I m looking for it, but if someone can help, thx in advance.

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 15:58:25
Script start
Timing: Jan 18 2025 15:58:25
Module start 'layout'
Timing: Jan 18 2025 15:58:25
Module start 'content'
Timing: Jan 18 2025 15:58:25
Module end 'content'
Timing: Jan 18 2025 15:58:25
Script end

Main resources:

Total runtime0.5757 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.2188152.6094
Module start 'layout' 0.00600.0034 741.828139.4297
Module start 'content' 0.00950.5648 781.2578435.7109
Module end 'content' 0.57420.0014 1,216.96888.3438
Script end 0.5756  1,225.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5650160.0002
Check MTime0.00130.2303160.0001
Mysql Total
Database connection0.00090.149110.0009
Mysqli_queries0.534492.8226460.0116
Looping result0.00050.0800440.0000
Template Total0.541194.020.2706
Template load0.00170.291320.0008
Template processing0.539493.702420.2697
Template load and register function0.00010.017910.0001
states
state_id_array0.00240.417810.0024
state_identifier_array0.00180.304720.0009
Override
Cache load0.00130.2288100.0001
Sytem overhead
Fetch class attribute can translate value0.00060.111410.0006
Fetch class attribute name0.00070.124720.0004
XML
Image XML parsing0.00150.254110.0015
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00250.4409160.0002
String conversion0.00000.001540.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs