I am building my first basic function to verify a session.
If the verification is not in the function it works...
What am I missing?
(I couldnīt find anything about this in the mailing list archive)
-- This works ------>
session_start();
if (isset($PHPSESSID)){
echo "ok";
} else
echo "not ok";
}
-- This does not work ----->
session_start();
verifySess();
function verifySess() {
if (isset($PHPSESSID)){
echo "ok";
} else
echo "not ok";
}
}
Thanks,
// Tobias
--
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]