Forums / General / Keeping value session

Keeping value session

Author Message

Jean-François Sénéchal

Monday 02 October 2006 8:12:19 am

Hello,

I a extension, I want keep the result of php'script

I try like this :

$http =& eZHTTPTool::instance();
$http->setSessionVariable( 'rrn', $valeur);

But I go to a othe page, the value's session is destroy

How can I keep on all the pages ?

thanks

L'informaticien est comme un petit canard:
il est calme en surface mais en dessous il brasse beaucoup d'eau pour
avancer ...!

Claudia Kosny

Monday 02 October 2006 2:25:20 pm

Hi

is the session still the same (just fetch and compare the session ids on both pages)?
How do you try to fetch the session variable on the next page?

Greetings from Luxembourg

Claudia

Jean-François Sénéchal

Wednesday 04 October 2006 12:55:41 am

Hello,

I don't know how can I fetch the session ?
I don't make anything to keep the variable's session in other page.

I do not have any idea how can I make it

thanks

L'informaticien est comme un petit canard:
il est calme en surface mais en dessous il brasse beaucoup d'eau pour
avancer ...!

Łukasz Serwatka

Wednesday 04 October 2006 2:16:06 am

You can fetch session directly via $_SESSION['name'] variable or using http tool

$http =& eZHTTPTool::instance();
$var = $http->sessionVariable( $name );

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog