ID: 25116 Updated by: [EMAIL PROTECTED] Reported By: leo dot jokinen at laurea dot fi -Status: Open +Status: Feedback Bug Type: Session related Operating System: Windows XP home PHP Version: 4.3.2 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Works just fine here. Previous Comments: ------------------------------------------------------------------------ [2003-08-18 10:03:09] leo dot jokinen at laurea dot fi Now my page1 looks like this: <?php session_start(); $_SESSION["test"] = "Hello World"; echo 'The content is '. $HTTP_SESSION_VARS['test']; ?> <br><a href="page2.php?<?php echo SID?>">Next Page</a> Still doesn't work for me. I've tried a different browser (Mozilla) but nothing happened. =( ------------------------------------------------------------------------ [2003-08-17 13:30:14] [EMAIL PROTECTED] Check if cookie is being sent and if it then is sent by the browser. You should also try to see if the code would work with URL sessions. ------------------------------------------------------------------------ [2003-08-17 08:58:11] leo dot jokinen at laurea dot fi I've tried to use these files to get access to the session. page1.php: <?php session_start(); $_SESSION["test"] = "Hello World"; echo 'The content is '. $HTTP_SESSION_VARS['test']; ?> <br><a href="page2.php">Next Page</a> Page2.php: <?php session_start(); echo 'The content is '. $HTTP_SESSION_VARS['test']; ?> <br><a href="page1.php">Previous Page</a> If things would happening correctly, i would see the Hello World text also page 2. Instead the PHP makes second session-file, so it can't find correct one for my session.save_path directory. ------------------------------------------------------------------------ [2003-08-17 08:01:12] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. ------------------------------------------------------------------------ [2003-08-17 08:00:13] leo dot jokinen at laurea dot fi Description: ------------ My session.save_path contains these sessionfiles. Every time when i reload my page, the new file is being made. PHP won't find the current session. This problem happens also when is redirect my code into another php-file. I am running php with module of apache 1.3.28. Some stats: session.auto_start Off session.bug_compat_42 On session.bug_compat_warn On session.cache_expire 180 session.cache_limiter nocache session.cookie_domain no value session.cookie_lifetime 0 session.cookie_path / session.cookie_secure Off session.entropy_file no value session.entropy_length 0 session.gc_divisor 100 1 session.gc_maxlifetime 900 session.gc_probability 1 session.name PHPSESSID session.referer_check no value session.save_handler files session.save_path /Program Files/PHP/sessions/ session.serialize_handler php session.use_cookies On session.use_only_cookies On session.use_trans_sid Off ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25116&edit=1