From: [EMAIL PROTECTED] Operating system: Redhat 7.3 PHP version: 4.2.1 PHP Bug Type: Session related Bug description: Session variables timeout prematurely
I am having problems getting simple $_SESSION[] variable to go from one page to the next. I have created an extremely stripped down version of the rest of my code and it can be reached at http://gcfc.net/testsite1/docs/misc/one.php our php and server settings are here.... http://gcfc.net/testsite1/debug.php Simply put, one.php sets a session variable. two.php and three.php simply check to see if that session variable is set. If you go from one.php to two.php and wait for 60 seconds then the session variable is no longer present, but the session id is still intact. This happens on IE and Netscape. I have included my code below for the first 2 pages........................... <?php //one.php session_start(); $_SESSION['person']="Bob"; ?> <html><head><title>Session Test page 1</title></head> <body> <h1>You are at page 1</h1> <br> <a href="two.php">Page 2</a><br> <a href="three.php">Page 3</a> <br>Session variable person is <?php echo $_SESSION['person']; ?> <br>Session ID = <?php echo session_id(); ?> </body> </html> ******************************** <?php session_start(); ?> <html><head><title>Session Test page 2</title></head><body> <h1>You are at page 2</h1><br> <a href="one.php">Page 1</a><br> <a href="three.php">Page 3</a><br> <a href="four.php">Page 4, briefly</a> <br>Session variable person is <?php echo $_SESSION['person']; ?> <br>Session ID = <?php echo session_id(); ?> </body> </html> **************************************** Thanks Jason [EMAIL PROTECTED] -- Edit bug report at http://bugs.php.net/?id=21416&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21416&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21416&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21416&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21416&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21416&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21416&r=support Expected behavior: http://bugs.php.net/fix.php?id=21416&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21416&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21416&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21416&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21416&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21416&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21416&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21416&r=gnused