FurryGorilla
Technical User
Hi
I've et up Apache 1.3, MySQL and PHP on a W2K Pro PC but am having problems using sessions to pass data between pages. I've checked the php.ini file and it has the following format:
The test pages I'm running are as follows:
page1.php
page2.php
Unfortunately when I go to page2.php after clocking on the hyperlink from page1.php, the $sess_var value does not appear.
There is a file in the c:\temp directory called sess_f75aecf8c9fb286bb6e4e8205238658d which I presume is where the session information is stored.
Any ideas?
Many thanks
Chris Have you seen my munkee?
I've et up Apache 1.3, MySQL and PHP on a W2K Pro PC but am having problems using sessions to pass data between pages. I've checked the php.ini file and it has the following format:
Code:
[session]
session.save_path = c:\tmp
The test pages I'm running are as follows:
page1.php
Code:
<?
session_start();
session_register("sess_var");
$sess_var = "Hello world!";
echo "The content of \$sess_var is $sess_var<br>";
?>
<a href = "page2.php">Next page</a>
Code:
<?
session_start();
echo "The content of \$sess_var is $sess_var<br>";
session_unregister("sess_var");
?>
There is a file in the c:\temp directory called sess_f75aecf8c9fb286bb6e4e8205238658d which I presume is where the session information is stored.
Any ideas?
Many thanks
Chris Have you seen my munkee?