|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5880 sessions not working
Submitted: 2000-07-31 21:25 UTC Modified: 2000-07-31 21:31 UTC
From: rusty at socrates dot berkeley dot edu Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.1pl2 OS: solaris 2.7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: rusty at socrates dot berkeley dot edu
New email:
PHP Version: OS:


 [2000-07-31 21:25 UTC] rusty at socrates dot berkeley dot edu
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 <===

  if (! isset($email)) {
    $email = "abc";


<? echo("Session id is " . session_id() . "<p>"); ?>
<a href="bbb.php">Continue</a>

===> end of aaa.php <===

===> start of bbb.php <===

  if (! isset($email))
    $email = "(unset)";


  echo("<p>Your login is $email<p>");
  echo("Session id is " . session_id() . "<p>");
<a href="aaa.php">Back to aaa</a>
===> end of bbb.php <===


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-31 21:31 UTC]
I?ve appended there...
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 22 12:01:31 2024 UTC