ID: 25116 User updated by: leo dot jokinen at laurea dot fi Reported By: leo dot jokinen at laurea dot fi -Status: Bogus +Status: Open Bug Type: Session related Operating System: Windows XP home PHP Version: 4.3.2 New Comment:
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> Previous Comments: ------------------------------------------------------------------------ [2003-08-18 14:15:38] [EMAIL PROTECTED] user error -> bogus ------------------------------------------------------------------------ [2003-08-18 14:07:58] leo dot jokinen at laurea dot fi closed ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [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. =( ------------------------------------------------------------------------ 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