

My minimal knowledge of php leaves me a little bit stumped here. It doesn't 'destroy the session' in the sense that you're not asked to re-enter the password when prompted to, which is essentially what I want to happen. Click log out button, which references the logout.php file - it SHOULD clear the cache and return the user to the top level index. Enter username and password to access authenticate index file.


I'm using 3 files (See code snippets at the bottom). The code below, is based on a previous question on the stack overflow. For now this will have to do, until we figure out a proper PHP log in system. I'm currently working on a site that has a log-in (username and password) - The password protection is done by the operating system within the web server at folder level called a Realm within the OS.
