RE: [PHP] clearing a session variable
| From: | Matt Schroebel | Date: | Fri, 11 Apr 2003 15:25:13 +0000 |
| Subject: | RE: [PHP] clearing a session variable | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-143528@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: David T-G [mailto:davidtg-php@justpickone.org]
> Sent: Friday, April 11, 2003 11:09 AM
> To: PHP General list
> Subject: [PHP] clearing a session variable
>
>
> Hi, all --
>
> I have a simple password variable, stored in a session, that
> I need to be
> able to clear; if the person enters the wrong password then I
> have it and
> he can't go anywhere! Unfortunately, I haven't found how to
> really clear
> a variable so that it doesn't come back again.
The session pw is overriding the form pw. Don't register the session
variable until your certain it matches. Or set a different session
variable to control that the client has authenticated, such as
logged_in. See variable_order on this page for the explanation:
http://www.php.net/manual/en/configuration.directives.php