RE: [PHP] ignoring client supplied session data
| From: | John W. Holmes | Date: | Thu, 28 Nov 2002 02:57:12 +0000 |
| Subject: | RE: [PHP] ignoring client supplied session data | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126387@lists.php.net to get a copy of this message | ||
> What I do on my pages is perhaps a convoluted way of doing it but it
> works. I set a username and password session variables. Every time
the
> page loads the script verifies the username and password are correct.
If
> not, they don't get to see the rest. This, in my mind, pervents
someone
> from supplying a key variable like $_session['logged_in']. This way
they
> have to know the username and password.
But users can't supply session variables. So if your script sets
$_SESSION['logged_in'], then only your script can change it's value.
---John Holmes...