Re: PHP Login System
Posted: Tue May 27, 2014 5:35 am
It should, except you've overwritten $_SESSION['id'] with an uninitialized variable two lines above. I have also added a redirect for users not logged in. Most importantly, having this code will allow you to remove the check against $_GET['id'] farther down the page.