I have two pages page1.php and page2.php
here is the code for page1.php:
<?
session_start();
if (session_is_registered != 1) {
session_register("FailedLogins");
$HTTP_SESSION_VARS["FailedLogins"] = 0;
}
if ($HTTP_SESSION_VARS["FailedLogins"] > 3) {
echo "you have made " . $HTTP_SESSION_VARS["FailedLogins"] . " login
attempts";
}
?>
<a href="page2.php">Simulate a failed login</a>
here is the code for page2.php:
<?
session_start();
session_register("FailedLogins");
$HTTP_SESSION_VARS["FailedLogins"]++;
Header("Location: page1.php");
?>
Ok. so after i click on my link to simulate failed logins 3 times, I should
see the number of failed logins.
It seems like the gist of the problems is that different pages can't seem to
modify the same session variables.
any ideas? thanks everyone.
regards,
Johnny Nguyen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]