Bug #79397 [Opn->Nab]: Session Variable failed to pass for weird reason

From: Date: Wed, 18 Mar 2020 20:20:09 +0000
Subject: Bug #79397 [Opn->Nab]: Session Variable failed to pass for weird reason
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226172@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79397&edit=1

 ID:                 79397
 Updated by:         requinix@php.net
 Reported by:        generalp2 at aol dot com
 Summary:            Session Variable failed to pass for weird reason
-Status:             Open
+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:

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.




Previous Comments:
------------------------------------------------------------------------
[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)

« previous php.bugs (#226172) next »