RE: [PHP] Fw: sessions in php4
| From: | power jessie | Date: | Thu, 11 Oct 2001 02:29:17 +0000 |
| Subject: | RE: [PHP] Fw: sessions in php4 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70622@lists.php.net to get a copy of this message | ||
try passing the session id with the SID constant
to the header function ..
<?
session_start();
$value = 908;
session_register("value");
header("location: new location?SID");
?>
hope it helps.
jessie :)
-----Original Message-----
From: Eduardo Kokubo [mailto:kokubo@inf.univali.br]
Sent: Wednesday, October 10, 2001 4:14 AM
To: sagar N Chand
Cc: php-general@lists.php.net
Subject: Re: [PHP] Fw: sessions in php4
Try registering the $value in the session before giving it value.
I'm not sure if it works but...
----- Original Message -----
From: "sagar N Chand" <sagarchand@yahoo.com>
To: "php" <php-general@lists.php.net>
Sent: Wednesday, October 10, 2001 5:25 AM
Subject: [PHP] Fw: sessions in php4
this is second or third time i'm mailing this. please help me.
hi all,
i'm using a php4.0.6 with apache on win2k. when i register a session and
immediately if i redirect to another
page the session seems not to be registered. eg.
<?
session_start();
$value = 908;
session_register("value");
header("location: new location");
?>
when i go to the new page i c that the session has not been reigstered.
but in case if i dont redirect from php rather use a html redirection code
like "click here to redirect" then
it worked. why ?
<?
session_start();
$value = 908;
session_register("value");
?>
<a href="newlocation">click here to redirect</a> (this worked out )
any suggestions ?
/sagar
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net