session var ?

Author Message

anne martinet

Friday 22 August 2008 12:36:30 am

Hi,

I have a stupid question. It is possible to create a session var? If Yes, how?

thanks in advanced,

Fou Jino

Monday 14 February 2011 4:42:43 am

A solution, because I sought the same question.

Yes it's possible to create and use a session var.

Example :

$http = eZHTTPTool::instance();

$http->setSessionVariable( 'key', 'value' );

Foujino ~ http://www.foujino-blog.be

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 30 2025 19:46:04
Script start
Timing: Jan 30 2025 19:46:04
Module start 'layout'
Timing: Jan 30 2025 19:46:04
Module start 'content'
Timing: Jan 30 2025 19:46:05
Module end 'content'
Timing: Jan 30 2025 19:46:05
Script end

Main resources:

Total runtime1.2980 sec
Peak memory usage8,192.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.0078151.1953
Module start 'layout' 0.00620.0043 739.2031220.6406
Module start 'content' 0.01051.2865 959.84384,285.7266
Module end 'content' 1.29710.0009 5,245.57037.8906
Script end 1.2980  5,253.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.2903160.0002
Check MTime0.00140.1095160.0001
Mysql Total
Database connection0.00080.061910.0008
Mysqli_queries1.222894.2061540.0226
Looping result0.00060.0436520.0000
Template Total1.244695.920.6223
Template load0.00220.168720.0011
Template processing1.242495.716820.6212
Template load and register function0.00150.117510.0015
states
state_id_array0.00210.163210.0021
state_identifier_array0.00140.108220.0007
Override
Cache load0.00170.1327120.0001
Sytem overhead
Fetch class attribute can translate value0.00180.139420.0009
Fetch class attribute name0.00230.173620.0011
XML
Image XML parsing0.00020.017020.0001
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00070.0557100.0001
String conversion0.00000.000840.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs