October 2009
Beginner
408 pages
7h 27m
English
After an authorized user completes his administrative tasks, he needs to be able to log out from the site. To enable this, all you need to do is unset $_SESSION['loggedin'], which hides the admin links and prevents any administrative actions from being performed until the user logs in again.
You can simplify this process by adding a Log out link to your blog pages. This is as simple as adding an additional if block to index.php that displays a message notifying a user that she is logged in, as well as a link that allows her to log out.
You can keep the link visible by placing it right under the menu. In index.php, add the code in bold between the menu and the entries container:
<body> <h1> ...
Read now
Unlock full access