0% found this document useful (0 votes)
5 views1 page

User Dashboard with Session Management

The document is a PHP script that starts a session and checks if a user is logged in; if not, it redirects to a login page. It generates an HTML dashboard that welcomes the user and provides links to various sections such as Members, Savings, Loans, Reports, and Logout. The document includes a stylesheet link for styling the page.

Uploaded by

oumaselvine
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

User Dashboard with Session Management

The document is a PHP script that starts a session and checks if a user is logged in; if not, it redirects to a login page. It generates an HTML dashboard that welcomes the user and provides links to various sections such as Members, Savings, Loans, Reports, and Logout. The document includes a stylesheet link for styling the page.

Uploaded by

oumaselvine
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

<?

php

Session_start();

If(!isset($_SESSION[‘user’])){

Header(“Location: [Link]”);

?>

<!DOCTYPE html>

<html>

<head>

<title>Dashboard</title>

<link rel=”stylesheet” href=”[Link]”>

</head>

<body>

<h2>Welcome <?php echo $_SESSION[‘user’]; ?></h2>

<div class=”menu”>

<a href=”[Link]”>Members</a>

<a href=”[Link]”>Savings</a>

<a href=”[Link]”>Loans</a>

<a href=”[Link]”>Reports</a>

<a href=”[Link]”>Logout</a>

</div>

</body>

</html>

You might also like