How come if I have logged into my website as a registered user I cannot access other pages after setting session rules?
问题 I am working on a project right now and I'm unable to access pages of my own profile if i have logged in as a user - I have set thisi rule at the top of each of my pages: if(!isset($_SESSION['loggedin'])) header("location:http://localhost/ci/web-project-jb.php/start");// If an unregistered user tries to manually navigate to any of my webpages they will be brought to 'start' page. The start page has <$_SESSION['username'] = null;?> just to make sure the session has been destroyed I have set in