|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-03-18 20:20 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2020-03-18 20:20 UTC] requinix@php.net
[2020-03-18 20:21 UTC] generalp2 at aol dot com
[2020-03-19 03:39 UTC] generalp2 at aol dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 20:00:01 2025 UTC |
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