First Draft
First Draft of the Example Files
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php // Example 12: logout.php
|
||||
require_once 'header.php';
|
||||
|
||||
if (isset($_SESSION['user']))
|
||||
{
|
||||
destroySession();
|
||||
echo "<br><div class='center'>You have been logged out. Please
|
||||
<a data-transition='slide'
|
||||
href='index.php?r=$randstr'>click here</a>
|
||||
to refresh the screen.</div>";
|
||||
}
|
||||
else echo "<div class='center'>You cannot log out because
|
||||
you are not logged in</div>";
|
||||
?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user