> Hi All, > still trying to update old code. Am I using $_SESSION properly? > > <snip> > if (mysql_num_rows($res) ==1){ > /* If correct start session*/ > session_start(); > $_SESSION['SESSION_UNAME']; > $SESSION_UNAME = $user;
Instead of those two lines, use: $_SESSION['SESSION_UNAME'] = $user; -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php