Re[2]: [PHP] Sessions 2!!!

From: Date: Tue, 08 Oct 2002 02:31:39 +0000
Subject: Re[2]: [PHP] Sessions 2!!!
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-119190@lists.php.net to get a copy of this message
Hi, Tuesday, October 8, 2002, 12:00:59 PM, you wrote: TR> After the successful first login you are not saving the $_POST variables TR> into the $_SESSION equivalents TR> -- TR> regards, TR> Tom Ok after looking a little harder I found you were setting it :) Your prblem is in the lines if(isset($ssname)) { $_SESSION['ssun'] =$_POST['ssname']; } should be if(isset($_POST['ssname'])) { $_SESSION['ssun'] =$_POST['ssname']; } As you have set the &_SESSION vars you only need to do the one test on the database to check them ... drop the query with the $_POST vars -- regards, Tom

« previous php.general (#119190) next »