Date: 07/31/00
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #5879 Updated: switch() malfunction under very specific conditions"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #5878 Updated: Problem to open a file?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: rusty <email protected>
Operating system: solaris 2.7
PHP version: 4.0.1pl2
PHP Bug Type: Session related
Bug description: sessions not working
This is an addendum to bug id 5770. That bug report contains my config files.
sas asked me to explain what I mean by "sessions are not working". What is happening is that the variable I registered with session_register does not show up in the next page. My previous example .php files may not have been the best example; here are updated versions. Not only does the registered variable not get passed, but the value returned by session_id() keeps changing. I tried it with both IE 5.5 and with Netscape Communicator 4.7. I also tried it with cookies turned off in IE 5.5 and I removed all of the cookie files from IE's cache directory; still no success.
(The sess_ files in /tmp do have data in them.)
===> start of aaa.php <===
<?
session_start();
if (! isset($email)) {
$email = "abc";
session_register("email");
}
?>
<html>
<body>
<? echo("Session id is " . session_id() . "<p>"); ?>
<a href="bbb.php">Continue</a>
</body>
</html>
===> end of aaa.php <===
===> start of bbb.php <===
<?
session_start();
if (! isset($email))
$email = "(unset)";
?>
<html>
<body>
<?
echo("<p>Your login is $email<p>");
echo("Session id is " . session_id() . "<p>");
?>
<a href="aaa.php">Back to aaa</a>
</body>
===> end of bbb.php <===
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #5879 Updated: switch() malfunction under very specific conditions"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #5878 Updated: Problem to open a file?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

