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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
15 + 26 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2023 The PHP Group
All rights reserved.
Last updated: Wed Jun 07 17:03:43 2023 UTC