[APACHE-PHP-WIN] : $_SESSION problems
| From: | John Mpaliza | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | [APACHE-PHP-WIN] : $_SESSION problems | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-90886@lists.php.net to get a copy of this message | ||
I configured well ( I think) my system (win32-apache 1.3.24-php4.1.2) and
every think is working except session variables. Codes like this don't work:
page1.php
<?php
session_start();
$_SESSION['test']="adding";
header("Location: page2.php?".SID);
exit;
?>
page2.php
<?php
session_start();
print $_SESSION['test'];
?>
Question:
-----------
Why in the 2nd page $_SESSION['test'] is not set and so no available?
N.B: All codes I wrote first for php4.1.0 don't work with the new version of
php........
Please help me....
Thank you.