updating session variables

Author Message

le gall bruno

Wednesday 27 February 2008 12:29:09 am

I use the 3.9.0 espublish version, I create an extension and a main script which generates HTML code (this script is called for every user request) and sends it to the template.
I use $_SESSION to store session variables which are initialized with constants and updated with informations from variable $_POST.
Updating values of $_SESSION does not work for me :
At first call, the first value of the session variables is set with constants values.
On subsequent calls, $_POST variables are correct, but updating $_SESSION from $_POST doesn't work : $_SESSION always keeps the initial values.

I tried others solutions to manage sessions :
- first :eZSessionStart, eZSessionRead and eZSessionWrite
- second : eZSession and its methods store(), fetch,setVariable() and variable()

The result is always the same.

what should I do to update my session variables ? Could it be an ezpublish configuration problem ?

Thanks in advance for your suggestions.

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

Main resources:

Total runtime0.0345 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0103 588.1328151.2109
Module start 'layout' 0.01030.0050 739.3438220.6875
Module start 'content' 0.01530.0174 960.0313993.6797
Module end 'content' 0.03280.0017 1,953.710929.9922
Script end 0.0344  1,983.7031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003610.3410140.0003
Check MTime0.00133.7662140.0001
Mysql Total
Database connection0.00123.474410.0012
Mysqli_queries0.004813.935130.0016
Looping result0.00000.055310.0000
Template Total0.00123.310.0012
Template load0.00092.693810.0009
Template processing0.00020.634710.0002
Override
Cache load0.00061.846810.0006
General
dbfile0.00246.890180.0003
String conversion0.00000.029040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs