how to: setting session variables

Author Message

Alessandro Cipriani

Monday 08 March 2004 5:28:03 am

hi all
i'm searching information on how to store/retrieve session variables. i've seen that with ezhttp i can retrieve either get, post and session variables ({ezhttp( 'user_id', 'session' )}) but i can't find where is explained how to STORE the session variable!

in my site I use currentdate() as timestamp to pass to another application as unique value. then i have to store it to use later in the same session

any hint?
best regards
alessandro

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 07:08:36
Script start
Timing: Jan 19 2025 07:08:36
Module start 'layout'
Timing: Jan 19 2025 07:08:36
Module start 'content'
Timing: Jan 19 2025 07:08:37
Module end 'content'
Timing: Jan 19 2025 07:08:37
Script end

Main resources:

Total runtime1.0457 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.0063 590.3125152.6250
Module start 'layout' 0.00630.0040 742.937539.4453
Module start 'content' 0.01031.0338 782.3828434.8828
Module end 'content' 1.04410.0016 1,217.26568.1563
Script end 1.0457  1,225.4219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3037160.0002
Check MTime0.00130.1234160.0001
Mysql Total
Database connection0.00090.085410.0009
Mysqli_queries1.002195.8313460.0218
Looping result0.00050.0494440.0000
Template Total1.004496.120.5022
Template load0.00190.184620.0010
Template processing1.002595.866020.5013
Template load and register function0.00010.010410.0001
states
state_id_array0.00130.123410.0013
state_identifier_array0.00140.137120.0007
Override
Cache load0.00150.1454100.0002
Sytem overhead
Fetch class attribute can translate value0.00090.083510.0009
Fetch class attribute name0.00110.100520.0005
XML
Image XML parsing0.00050.043510.0005
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00090.0877160.0001
String conversion0.00000.001040.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
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 8
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs