Date: 01/17/07 (PHP Community) Keywords: php, mysql, html, database, sql I'm trying to create a super basic login page.. one that doesn't require a mysql database of usernames and passwords, which apparently is nearly impossible to find. I'm still relatively new to php.. bumbling along mostly. Anyway.. here's what I've got so far
What I'm trying to accomplish is being able to kill this information with a "Logout" button. I've attempted putting session_destroy() and session_unset(); in the header of that page.. tried resetting the $_POST['user'] to nothing or something other than 'bob' (and changing the isset part.) Nothing works.. I'm still passing something that's allowing me to be logged in. How can I code this so it's totally killed.. dead, gone.. when they hit a button that says logout ?? for the rest of the pages can I simply put in the header
you guys are my last hope.. I'm about to toss the whole thing and resort to .htaccess .. please help! ETA: Problem appears to be fixed.. thanks everyone!
|