Bug #79397 [Nab]: Session Variable failed to pass for weird reason
Edit report at https://bugs.php.net/bug.php?id=79397&edit=1
ID: 79397
User updated by: generalp2 at aol dot com
Reported by: generalp2 at aol dot com
Summary: Session Variable failed to pass for weird reason
Status: Not a bug
Type: Bug
Package: Scripting Engine problem
Operating System: Unix
PHP Version: 7.2.28
Block user comment: N
Private report: N
New Comment:
found it depended on whether another program ran first. Please ignore this report
Previous Comments:
------------------------------------------------------------------------
[2020-03-18 20:21:28] generalp2 at aol dot com
This is a bug!!!
------------------------------------------------------------------------
[2020-03-18 20:20:09] requinix@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2020-03-18 20:19:22] generalp2 at aol dot com
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 this bug report at https://bugs.php.net/bug.php?id=79397&edit=1
Thread (4 messages)