RE: [PHP] Approaches to Logging In
| From: | Chris W. Parker | Date: | Fri, 29 Aug 2003 22:37:43 +0000 |
| Subject: | RE: [PHP] Approaches to Logging In | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-161209@lists.php.net to get a copy of this message | ||
Seth Willits <mailto:seth@freaksw.com>
on Friday, August 29, 2003 3:24 PM said:
> Are sessions the way to go?
Well you could use cookies also but those can be tampered with.
Sessions aren't hard to work with really. All you need to do is start
the session, write a variable to $_SESSION if they have authenticated
successfully and then check for the existence of that variable on every
page. If it doesn't exist they have not authenticated.
Those are the basics.
Chris.