RE: [PHP] User authentication
| From: | Dan Joseph | Date: | Thu, 02 Oct 2003 18:15:51 +0000 |
| Subject: | RE: [PHP] User authentication | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164796@lists.php.net to get a copy of this message | ||
Hi,
> > (2) I would advise not mixing $_SESSION and
> > session_register() -- it's problematical in some situations.
> > Just stick to using the $_SESSION array.
>
> I'm not quite sure what you mean here, can you give an example or
> elaborate. Sorry, real newbie here... :o)
$_SESSION['userid'] = 254;
Where 254 is, that is the value you want to assign it. Its just an array.
Think of it more as a global variable accross the entire site.
-Dan Joseph