> I am using php 4.0.6 and i would rather not use global variables.
I hear ya.
After playing around with this, your approach works if register_globals is
set to off (I did this with an .htaccess file). I'm surprised by this. It
appears that the global version of a variable still overwrites the
H
I am using php 4.0.6 and i would rather not use global variables.
regards,
Johnny Nguyen
-Original Message-
From: Johnson, Kirk [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 3:33 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Session Headaches
OK, the session_is_registered
e below probably won't work. If this
is the case, just use the global variable, $FailedLogins, instead of
$HTTP_SESSION_VARS["FailedLogins"] everywhere.
Kirk
> -Original Message-
> From: Johnny Nguyen [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 21, 2001 1:5
oops. of course that's what i meant.
-Original Message-
From: Johnson, Kirk [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 1:56 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Session Headaches
Start with this correction on page1.php:
> if (session_is_registe
Start with this correction on page1.php:
> if (session_is_registered != 1) {
should be
> if (session_is_registered("FailedLogins") != 1) {
We'll go from there :)
Kirk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
I have two pages page1.php and page2.php
here is the code for page1.php:
3) {
echo "you have made " . $HTTP_SESSION_VARS["FailedLogins"] . " login
attempts";
}
?>
Simulate a failed login
here is the code for page2.php:
Ok. so after i click on my link to simulate fai
6 matches
Mail list logo