|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38411 does not store my session varriables
Submitted: 2006-08-10 11:24 UTC Modified: 2006-08-18 01:00 UTC
From: zvara at email dot cz Assigned:
Status: No Feedback Package: Session related
PHP Version: 5.1.4 OS: windows server
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: zvara at email dot cz
New email:
PHP Version: OS:


 [2006-08-10 11:24 UTC] zvara at email dot cz
problem is that my session works on one server(apache) with php 5.0.5 and doesn't on the other(apache) with php 5.1.2, i tried to figure out what this problem exatcly is and i beheld that session varriables are not stored

please try to send me some tips


Reproduce code:
if (uis('logout'))
      $this->uid   = null;
      $this->uname = null;
      echo $_SESSION['zvara'];
      info('Boli ste odhl?sen?!');

    if (uis('login'))
      // admin login = new user

      $login = sql_esc($_POST["{$this->tag}_login"]);
      $pass1 = sql_esc($_POST["{$this->tag}_pass"]);

      $db->query("SELECT [USER_ID], [PASSWORD], [USER_NAME], [FIRST_NAME], [LAST_NAME] FROM [Users] WHERE [USER_NAME]='{$login}'");

      if (list($id,$pass2,$un,$fn,$ln) = $db->row())
        if ($this->testpass($pass1,$pass2))
          $this->uid   = $id;
          $this->uname = $un;
          $_SESSION['zvara']= "stored";
          //echo $_SESSION['zvara'];
          info("Vitajte $fn !");
        } else {
          $wp = "Nespr?vne heslo";
          return $this->error($wp);
      } else {
        $wl = "Nespr?vny login";
        return $this->error($wl);

Expected result:
$_SESSION['zvara'] is not stored;
but with php 5.0.5 it's stored


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-10 11:51 UTC]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

 [2006-08-18 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 15 00:01:28 2024 UTC