RE: [PHP] Updating session variables values during session

2002-10-11 Thread Simon Taylor

Hiya,
Try using $_SESSION['variablename']
To refer to session variables.
Cheers
Simon

-Original Message-
From: Stéphane Pinel [mailto:[EMAIL PROTECTED]] 
Sent: 11 October 2002 11:16
To: [EMAIL PROTECTED]
Subject: [PHP] Updating session variables values during session


Hi,

PHP 4.1.X

I'm trying, during the session time, to change the value of 2 session
variables:

My first attempt was simply like this:

$sess_client = $theClient;
$sess_ref_clientFact = $theRefClient;

...but following pages still get old values from the session variables.

Then I tried this:

session_unregister(sess_client);
session_unregister(sess_ref_clientFact);
$sess_client = $ClientName;
$sess_ref_clientFact = $ClientRef;
session_register(sess_client);
session_register(sess_ref_clientFact);

Same, following pages get old values from these 2 session variables...

I would appreciate if I could get some help ?

Thanks.

---
Stéphane Pinel
[EMAIL PROTECTED]
iChat : [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Updating session variables values during session

2002-10-11 Thread Stéphane Pinel

Same problem...

Thanks.

---
Stéphane Pinel
[EMAIL PROTECTED]
iChat : [EMAIL PROTECTED]



Le 11/10/02 11:26, « Simon Taylor » [EMAIL PROTECTED] a écrit :

 Hiya,
 Try using $_SESSION['variablename']
 To refer to session variables.
 Cheers
 Simon
 
 -Original Message-
 From: Stéphane Pinel [mailto:[EMAIL PROTECTED]]
 Sent: 11 October 2002 11:16
 To: [EMAIL PROTECTED]
 Subject: [PHP] Updating session variables values during session
 
 
 Hi,
 
 PHP 4.1.X
 
 I'm trying, during the session time, to change the value of 2 session
 variables:
 
 My first attempt was simply like this:
 
 $sess_client = $theClient;
 $sess_ref_clientFact = $theRefClient;
 
 ...but following pages still get old values from the session variables.
 
 Then I tried this:
 
   session_unregister(sess_client);
   session_unregister(sess_ref_clientFact);
   $sess_client = $ClientName;
   $sess_ref_clientFact = $ClientRef;
   session_register(sess_client);
   session_register(sess_ref_clientFact);
 
 Same, following pages get old values from these 2 session variables...
 
 I would appreciate if I could get some help ?
 
 Thanks.
 
 ---
 Stéphane Pinel
 [EMAIL PROTECTED]
 iChat : [EMAIL PROTECTED]
 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Updating session variables values during session

2002-10-11 Thread Simon Taylor

Have you tried it like this?
 $_SESSION['sess_client'] = $ClientName;
 $_SESSION['sess_ref_clientFact'] = $ClientRef;

If it still gives you the old vars I would look at where the $ClientName and
$ClientRef are coming from.
-Original Message-
From: Stéphane Pinel [mailto:[EMAIL PROTECTED]] 
Sent: 11 October 2002 11:32
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Updating session variables values during session


Same problem...

Thanks.

---
Stéphane Pinel
[EMAIL PROTECTED]
iChat : [EMAIL PROTECTED]



Le 11/10/02 11:26, « Simon Taylor » [EMAIL PROTECTED] a écrit :

 Hiya,
 Try using $_SESSION['variablename']
 To refer to session variables.
 Cheers
 Simon
 
 -Original Message-
 From: Stéphane Pinel [mailto:[EMAIL PROTECTED]]
 Sent: 11 October 2002 11:16
 To: [EMAIL PROTECTED]
 Subject: [PHP] Updating session variables values during session
 
 
 Hi,
 
 PHP 4.1.X
 
 I'm trying, during the session time, to change the value of 2 session
 variables:
 
 My first attempt was simply like this:
 
 $sess_client = $theClient;
 $sess_ref_clientFact = $theRefClient;
 
 ...but following pages still get old values from the session 
 variables.
 
 Then I tried this:
 
   session_unregister(sess_client);
   session_unregister(sess_ref_clientFact);
   $sess_client = $ClientName;
   $sess_ref_clientFact = $ClientRef;
   session_register(sess_client);
   session_register(sess_ref_clientFact);
 
 Same, following pages get old values from these 2 session variables...
 
 I would appreciate if I could get some help ?
 
 Thanks.
 
 ---
 Stéphane Pinel
 [EMAIL PROTECTED]
 iChat : [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Updating session variables values during session

2002-10-11 Thread Stéphane Pinel

Le 11/10/02 11:39, « Simon Taylor » [EMAIL PROTECTED] a écrit :

 Have you tried it like this?
 $_SESSION['sess_client'] = $ClientName;
 $_SESSION['sess_ref_clientFact'] = $ClientRef;

Yes...but it doesn't work.

 
 If it still gives you the old vars I would look at where the $ClientName and
 $ClientRef are coming from.

At first view, $ClientName and $ClientRef come from a link in the previous
page:

togglecl.php?ClientName=AClientRef=B

Then $ClientName is different than session variable $sess_client . That's
why I'm trying to put the $ClientName value to $sess_client session
variable.

Again, Thanks.

---
Stéphane Pinel
[EMAIL PROTECTED]
iChat : [EMAIL PROTECTED]

 -Original Message-
 From: Stéphane Pinel [mailto:[EMAIL PROTECTED]]
 Sent: 11 October 2002 11:32
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Updating session variables values during session
 
 
 Same problem...
 
 Thanks.
 
 ---
 Stéphane Pinel
 [EMAIL PROTECTED]
 iChat : [EMAIL PROTECTED]
 
 
 
 Le 11/10/02 11:26, « Simon Taylor » [EMAIL PROTECTED] a écrit :
 
 Hiya,
 Try using $_SESSION['variablename']
 To refer to session variables.
 Cheers
 Simon
 
 -Original Message-
 From: Stéphane Pinel [mailto:[EMAIL PROTECTED]]
 Sent: 11 October 2002 11:16
 To: [EMAIL PROTECTED]
 Subject: [PHP] Updating session variables values during session
 
 
 Hi,
 
 PHP 4.1.X
 
 I'm trying, during the session time, to change the value of 2 session
 variables:
 
 My first attempt was simply like this:
 
 $sess_client = $theClient;
 $sess_ref_clientFact = $theRefClient;
 
 ...but following pages still get old values from the session
 variables.
 
 Then I tried this:
 
   session_unregister(sess_client);
   session_unregister(sess_ref_clientFact);
   $sess_client = $ClientName;
   $sess_ref_clientFact = $ClientRef;
   session_register(sess_client);
   session_register(sess_ref_clientFact);
 
 Same, following pages get old values from these 2 session variables...
 
 I would appreciate if I could get some help ?
 
 Thanks.
 
 ---
 Stéphane Pinel
 [EMAIL PROTECTED]
 iChat : [EMAIL PROTECTED]
 
 




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php