ID: 25116 Updated by: [EMAIL PROTECTED] Reported By: leo dot jokinen at laurea dot fi -Status: Open +Status: Bogus Bug Type: Session related Operating System: Windows XP home PHP Version: 4.3.3RC5-dev New Comment:
not a php bug -> bogus Previous Comments: ------------------------------------------------------------------------ [2003-08-19 10:09:40] leo dot jokinen at laurea dot fi The problem was ZoneAlarm Pro and maybe PHP's cookie settings, cause ZoneAlarm regonizes this (PHPSESSID) cookie for type "3rd party cookie". Why the cookie isn't type of session cookie like for example google-cookie? But thanks to Sniper (again :) for showing the way to the "bug".. ------------------------------------------------------------------------ [2003-08-19 02:58:24] [EMAIL PROTECTED] I guess these still apply (check from phpinfo()!): session.use_cookies On session.use_only_cookies On session.use_trans_sid Off If so, we're back to the question: Is the cookie set at all? (easy way to check: set your browser to ask confirmation when cookie is about to be set) ------------------------------------------------------------------------ [2003-08-18 23:56:38] leo dot jokinen at laurea dot fi I was bit hasty for previous comment. Now my code works only when i use SID in the link. But for security reasons i want to pass the session id via cookie. I have this latest stable CVS snapshot. The only thing what i've changed is this line in php.ini: session.save_path = "F:/Program Files/PHP/sessions/" Here are the code what i am using now: Page1.php <?php session_start(); $_SESSION['sess_var'] = "Hello world!"; session_write_close(); echo "The content is ". $_SESSION['sess_var']. "<br />"; ?> <a href="page2.php?<?php echo SID?>">Next page</a> Page2.php <?php session_start(); echo "The content is ".$_SESSION['sess_var']."<br />"; unset ($_SESSION['sess_var']); session_write_close(); ?> <a href="page1.php?<?php echo SID?>">First Page</a> ------------------------------------------------------------------------ [2003-08-18 14:07:42] leo dot jokinen at laurea dot fi Thanks sniper! =) My php.ini was the fault. Dunno what happened there but when i used that recommended ini, things starting to click.. Now the coding calls, thnx.. ------------------------------------------------------------------------ [2003-08-18 10:34:06] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/25116 -- Edit this bug report at http://bugs.php.net/?id=25116&edit=1