Bug #79397 [NEW]: Session Variable failed to pass for weird reason

From: Date: Wed, 18 Mar 2020 20:19:22 +0000
Subject: Bug #79397 [NEW]: Session Variable failed to pass for weird reason
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226171@lists.php.net to get a copy of this message
From: generalp2 at aol dot com Operating system: Unix PHP version: 7.2.28 Package: Scripting Engine problem Bug Type: Bug Bug description:Session Variable failed to pass for weird reason Description: ------------ See below Test script: --------------- Can anyone tell me why this code didn’t work: $vu=$_SESSION["valid_user"]; $txt="PROBLEM: You may not proceed. You are not logged in."; if ($vu!="Yes") {php_alert($txt,"index.php");} but this code did? $chk=$_SESSION["valid_user"]; $txt="PROBLEM: You may not proceed. You are not logged in."; if ($chk!="Yes") {php_alert($txt,"index.php");} The Session variable didn’t pass from another program in the first case but did in the second case. Chuck Patton Generalp2@aol.com -- Edit bug report at https://bugs.php.net/bug.php?id=79397&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79397&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79397&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79397&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79397&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79397&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79397&r=support Expected behavior: https://bugs.php.net/fix.php?id=79397&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79397&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79397&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79397&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79397&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79397&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79397&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79397&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79397&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79397&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79397&r=mysqlcfg

« previous php.bugs (#226171) next »