Re: sessions

From: Date: Mon, 13 May 2002 01:27:54 +0000
Subject: Re: sessions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-97281@lists.php.net to get a copy of this message
Ok, Let's see if I learned anything.... ----- Original Message ----- From: "Jas" <jlgerfen@hotmail.com> To: <php-general@lists.php.net> Sent: Monday, May 13, 2002 2:30 AM Subject: [PHP] sessions <SNIP> > $msg = "<p class=\"content\">You have been authorized to make changes to the > web site.</p>"; > session_is_registered('u_name'); > session_is_registered('p_word'); $_SESSION['u_name'] = $u_name; $_SESSION['p_word'] = $p_word; > session_start(); ^^ Not to sure if you need this again, I doub't it. > } else { > header("Location: index.php"); > exit; > } > ?> > <html> > <body bgcolor="#FFFFFF" text="#000000"> > <?php echo $msg; ?><br> > <?php print (session_id()); ?><br> > <?php echo $u_name; ?><br> > <?php echo $p_word; ?><br> > <?php print (session_is_registered('u_name')); ?><br> > <?php print (session_is_registered('p_word')); ?><br> print ($_SESSION['u_name']); print ($_SESSION['p_word']); Syntax has not been double checked, so there might be a few errors, but you should be using $_SESSION['varname']; :) See, I actually do learn things aswell over time :) Thanks again for everyone who has helped me!!! My next set of questions will prob be on GDLib (I can feel this coming)... -- me

« previous php.general (#97281) next »