Date: 01/02/05 (PHP Development) Keywords: php, html, database, sql, java, security, web alright, so, i finally got around to designing my 'security system' for my family's website. here's how it'll work: now, each page on the rest of the site will do a check like this: if ($_SESSION['UsrIsLogdIn']!==true) { header("Location:index.php"); exit(); } do you all think that this is good security? do you see any problems, loopholes, other ways in or ways to emulate the session variable being set to true? is there anything else i should add or make the pages check for? thanks for your help :) [Edit: oh, and what do you think is the best way to handle the user logging out? just setting $_SESSION['UsrIsLogdIn'] to false?] Source: http://www.livejournal.com/community/php_dev/51178.html
|