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

From: Date: Wed, 18 Mar 2020 20:21:28 +0000
Subject: Bug #79397 [Nab]: Session Variable failed to pass for weird reason
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226173@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 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: This is a bug!!! Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#226173) next »