Refactored/ streamlined UserSession code
Makes it easier to tell when a user is signed in
This commit is contained in:
@@ -4,7 +4,4 @@ if(UserSession::isUserSignedIn()){
|
||||
}else{
|
||||
include("./view/pagecontent/header/content_header_signedout.php");
|
||||
}
|
||||
if(!UserSession::isSessionValid()){
|
||||
include_once("./model/actions/model_signout.php");
|
||||
}
|
||||
?>
|
||||
@@ -3,5 +3,5 @@ include_once("./controller/AssetHandler.php");
|
||||
AssetHandler::printAsset("logo.png", true, 128);
|
||||
?>
|
||||
<nav>
|
||||
<a href="?a=signout">log out</a> <a href="?p=">home</a> <a href="?p=create_topic">create thread</a> <a href="?p=destroy">simulate $_SESSION expiry</a>
|
||||
<a href="?action=signout">log out</a> <a href="?p=">home</a> <a href="?p=create_topic">create thread</a> <a href="?action=destroy">simulate $_SESSION expiry</a>
|
||||
</nav>
|
||||
Reference in New Issue
Block a user