note 34871 added to function.session-start
| From: | fabien at papleux dot com | Date: | Sat, 09 Aug 2003 14:42:04 +0000 |
| Subject: | note 34871 added to function.session-start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-53741@lists.php.net to get a copy of this message | ||
Using PHP4.3.2 ISAPI /IIS5.1/WinXP Pro, I have a problem I've tried to fix for 2 weeks.
I use some code like this:
Page 1:
<?php
session_start();
session_register("fabien");
$fabien = "goofy";
header("location: page2.php");
?>
Page2:
<?php
session_start();
echo "value: " . $fabien;
?>
and it doesn't work. If I upload the code to my Linux/Apache server, it works fine.
Every time I hit Page 2 from IE 6, it creates a new session file on the server!?!! Each session
file contains the variable and its value. I have reviewed the PHP.INI numerous times and I
can't see anything that could be wrong.
Cookies are enabled on client, etc. I don't know what to do...
Anyone?
Thanks in advance.
Fabien
----
Manual Page -- http://www.php.net/manual/en/function.session-start.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34871
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34871&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34871&report=yes