From: eswar at cgvakindia dot com Operating system: windows 2003 PHP version: 5.0.4 PHP Bug Type: *General Issues Bug description: Session handling problem
Description: ------------ Dear Sir I changed in php.ini file the auto start for session =1. I also tried by settin auto start=0; I set the session.save_path=c:\\temp; I also created the folder in windows. I am using IIS and windows 2003. Nothing else i had made change. Problem is: I created a two files. One file which is used to write the session and where another file I used to read the session. But i cann't able to read the data in the another file. I identified the bug as. When I write my file in session path it creating one session_id with file name and it stores the data. When i am moving to the next page, i observed that one more session file is created with empty content. So when I try to read the conten in the second page i am not able to read the stored session data. It is saying not defined. I understood that the second page is reading the session data from that empty file. How to short out this problem. Please help me. It is very urgent. Reproduce code: --------------- /*Session is started in server and i also tried by using session_start() and session_register() (/ 1.Write.php <? $_SESSION['test']="foo"; echo $_SESSION['test']; ?> <a href="read.php">read</a> 2.Read.php <? echo $_SESSION['test']; ?> error: Undefined variable test Expected result: ---------------- I want the o/p as "foo" in read.php the echo to print that. But i getting a error message. I tried all the option i don't please help me in this situation. Actual result: -------------- Waring:Undefined variable in read.php 'test' -- Edit bug report at http://bugs.php.net/?id=33106&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33106&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33106&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33106&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33106&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33106&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33106&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33106&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33106&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33106&r=support Expected behavior: http://bugs.php.net/fix.php?id=33106&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33106&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33106&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33106&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33106&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33106&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33106&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33106&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33106&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33106&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33106&r=mysqlcfg