ID:               25116
 User updated by:  leo dot jokinen at laurea dot fi
 Reported By:      leo dot jokinen at laurea dot fi
-Status:           Open
+Status:           Closed
 Bug Type:         Session related
 Operating System: Windows XP home
 PHP Version:      4.3.2
 New Comment:

closed


Previous Comments:
------------------------------------------------------------------------

[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. =(

------------------------------------------------------------------------

[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.

------------------------------------------------------------------------

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

Reply via email to