@Kyo,
Stefan is usually very sincere when it comes to security, so I have no doubt it is true. I've seen similar solutions myself. One of my personal favorites comes from an insurance agency I audited, their admin pages used to be protected with one of two techniques, from memory the snippets were similar to this:
The "YOU SAW NOTHING!" approach
<?php
if (!$_SESSION[admin]==1) {
echo "<script>window.close();</script>";
}
?>
and the "Charlie says LOGIN" approach
<?php
if(!$_SESSION[admin]==1) {
header("Location: login.php");
}
?>
Brilliant!
[
www.justanotherhacker.com]