Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (16 sloc) 535 Bytes
<HTML>
<HEAD>
<TITLE>New Document</TITLE>
</HEAD>
<BODY>
</BODY>
</HTML>
<?php
// Inialize session session_start();
// Check, if username session is NOT set then this page will jump to login page if (!isset($_SESSION['username'])) { header('Location: index.php'); }
?><html>
<head> <title>Secured Page</title> </head>
<body>
<p>This is secured page with session: <b><?php echo $_SESSION['username']; ?></b> <br>You can put your restricted information here.</p> <p><a href="logout.php">Logout</a></p>
</body>
</html>