Session problem
| From: | Manisha Sathe | Date: | Sun, 26 Oct 2003 08:06:56 +0000 |
| Subject: | Session problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-167609@lists.php.net to get a copy of this message | ||
I am trying to use session but it seems it does not work on win2k server,
the same runs on linux.
following is my first php
-------------------
<?
session_start();
$_SESSION["name"]= "Manisha";
?>
----------------------
following is the second php
<?
session_start();
echo $_SESSION["name"];
?>
-----------------
but it is always giving me following error msg
Notice: Undefined index: name in C:\Project Codes\www\testPHP\second.php on
line 6
----------------------------
The same thing works well on live Linux server. I checked php.ini options
such as session enable / register global etc - both r same. Please help me.
Is it a problem with win2k server or did i miss out any thing in php.ini ?
Regards
Manisha