Re: Case sensitive password
| From: | R.C. | Date: | Thu, 19 Jun 2008 20:18:40 +0000 |
| Subject: | Re: Case sensitive password | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-275651@lists.php.net to get a copy of this message | ||
Andrew,
That is correct. Only ONE password to access a restricted page for selected
people. But... they want to make that ONE password case-insensitive. I
added the following code with 2 variables now, one being upper case, one
being lower case but that, of course, doesn't cover all the variatons on the
"video" word. I'm looking for the code to make this whole word
case-insensitive, no matter which letter is cap or not.... can you add to
this code below please?
Thanks much
R.C.
session_start();
$_SESSION ['userpass'] = $_POST ['pass'];
$_SESSION ['authuser'] = 0;
$login = "VIDEO";
$login2 = "video";
if (($_SESSION['userpass'] == $login) or ($_SESSION['userpass'] == $login2))
{
$_SESSION['authuser'] = 1;
?>
""Andrew Ballard"" <aballard@gmail.com> wrote in message >
> I could be wrong, but I didn't see anything about a username. It
> sounds to me more like it is a single password shared with all the
> people who should have access to a specific, non-personalized area of
> the site. It certainly wouldn't be my preferred way to set up
> security, but depending on the level of risk involved it may be
> sufficient.
>
> Andrew