Re: $_SESSION

From: Date: Tue, 15 Oct 2002 23:04:29 +0000
Subject: Re: $_SESSION
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-120080@lists.php.net to get a copy of this message
> 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

« previous php.general (#120080) next »