Forums / Developer / updating session variables

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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 Exponential configuration problem ?

Thanks in advance for your suggestions.