|
From: Campbell, A. <aca...@ne...> - 2002-08-09 05:32:42
|
Hi
I'm confused about the following line in index.php:
// SET COOKIE
if (isset($authentication)) {
include("includes/cookie.inc.php");
include("includes/permissions.inc.php");
}
If I look at cookie.inc.php ...
if (isset($authentication)) {
setcookie("status", $status, $date);
setcookie("user", $user, $date);
setcookie("group", $group, $date);
setcookie("authentication", $authentication, $date);
setcookie("laston", $laston, $date);
}
else {
setcookie("status", "Logged In", $date);
setcookie("user", $txtUsername, $date);
setcookie("group", $row[4], $date);
setcookie("authentication", "YES", $date);
setcookie("laston", $row[6], $date);
}
...when will the else statement ever run?
The index.php will only include cookie.inc.php if isset($authentication)
I cannot see when the else statement in cookie.inc.php will execute?
Help ?
Andrew Campbell
-----BEGIN STOLEN PGP SIGNATURE-----
iQA/AwUBO7oNRelROe8ye3NFEQL2VwCdETdr
M3+3z4aeeCCFg2XRJGGF19EAn1zV42BUTs9X
Zw6Qx6ogN2dk39kdS9s3kSi1eaZep4D/p=/pjY
-----END STOLEN PGP SIGNATURE-----
|