For user authentication, I've made a login page which starts a session & creates a session variable named "authenticated" .. I then have a "secure.php" which checks to see if the session variable "autheticated" is set & if not exit()s ... this file is included at the top of all php files i want "protected" ...
Is this a good & secure method??
This seems to require cookies... which surprised me b/c I don't like assuming anything about clients.