php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: zvara at email dot cz
New email:
PHP Version: OS:

 

 [2006-08-10 11:24 UTC] zvara at email dot cz
Description:
------------
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

thanks

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";
          info($wp);
          return $this->error($wp);
        }
      } else {
        $wl = "Nespr?vny login";
        info($wl);
        return $this->error($wl);
      }
    }
.
.
.

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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-10 11:51 UTC] tony2001@php.net
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: Fri Dec 27 05:01:27 2024 UTC