RE: [PHP] Sessions: Wath's my mistake??

From: Date: Sat, 17 May 2003 09:05:18 +0000
Subject: RE: [PHP] Sessions: Wath's my mistake??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-148008@lists.php.net to get a copy of this message
if($HTTP_SESSION_VARS['autthentified']!=="YES") ?? if($HTTP_SESSION_VARS['autthentified']!="YES") this seem to work in php3 only -----Original Message----- From: Tomás Liendo [mailto:tomasjliendo@hotmail.com] Sent: Saturday, May 17, 2003 4:18 PM To: php-general@lists.php.net Subject: [PHP] Sessions: Wath's my mistake?? I did all your town councils, but my athentification system doesn't work. Here are my scripts: if(mysql_num_rows($result)!=0) { session_start(); //global $HTTP_SESSION_VARS; (it doesn't influence in anything) $HTTP_SESSION_VARS['authentified']="YES"; header("Location: page1.php"); ... And in the other file (page1.php): session_start(); //global $HTTP_SESSION_VARS; (it doesn't influence in anything) if($HTTP_SESSION_VARS['autthentified']!="YES") { echo "Error.<br>"; } else { ... I always receipt the Error message. I think that it is because the second script takes $HTTP_SESSION_VARS as a new variable and not as a session variable. Help me pleaseeeeeeee! Ahead of time, thank you very much, Tom. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#148008) next »