-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsession.php
More file actions
33 lines (32 loc) · 1.01 KB
/
session.php
File metadata and controls
33 lines (32 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
// Start the session
session_start();
?>
<!doctype html>
<html lang="en">
<head>
<?php require_once "_header.php" ?>
<title>Session</title>
</head>
<body>
<?php require_once "_navbar.php" ?>
<div class="container">
<div class="row justify-content-center mt-5">
<div class="col-12 col-sm-6 align-self-center">
<div class="card">
<div class="card-body text-center">
<h1>Session</h1>
<hr>
<?php
// Storing session data
echo "<br> Name: ".$_SESSION["name"] = "Nasir Khan";
echo "<br> Website: ".$_SESSION["website"] = "nasirkhn.com";
?>
</div>
</div>
</div>
</div>
</div>
<?php include_once "_footer.php" ?>
</body>
</html>