Session and global

From: Date: Mon, 17 Jun 2002 16:01:39 +0000
Subject: Session and global
Groups: php.general 
Request: Send a blank email to php-general+get-102529@lists.php.net to get a copy of this message
Nightshade wrote: Don't mind my previous article...there was a bull XXXX Watch this... index.php <? session_start(); ?> home.php <? if (isset($HTTP_SESSION_VARS["$UTENTE"])) echo "hallo " . $HTTP_SESSION_VARS["$UTENTE"]; ?> and in dologin.php if (mysql_num_rows($risultato)) { $riga=mysql_fetch_array($risultato); $HTTP_SESSION_VARS["$UTENTE"] = $riga['Nick']; header ("Location: http://localhost/site/"); exit; } else { //Non metto un cazzo $HTTP_SESSION_VARS["$UTENTE"] = ""; header ("Location: http://localhost/site/"); exit; }

« previous php.general (#102529) next »