This commit is contained in:
Suvodip
2025-03-19 17:46:05 +05:30
parent 6e69bf9f35
commit 8bcf5c055d
13 changed files with 58 additions and 43 deletions

View File

@@ -1,5 +1,12 @@
<div class="container mt-4">
<h2>Welcome: <?php echo $_SESSION['userName']; ?></h2>
<?php
if(isset($_SESSION['isLogedin']) && $_SESSION['isLogedin'] == 1){
echo '<h2>Welcome: ' . $_SESSION['userName'] . '</h2>';
} else{
// echo '<a href="/login">Click here to login</a>';
}
?>
</div>
<?php
// var_dump($_SESSION);