Skip to content

Commit

Permalink
index body
Browse files Browse the repository at this point in the history
  • Loading branch information
ketertitus committed Mar 25, 2024
1 parent b033241 commit efc70f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
<div id="maindiv">
<div class="main-content" id="div2">
<?php
if (isset($_SESSION['username'])) {
if ($redis->exists('merchantname')) {
// Display user details if logged in
echo "<h2>Welcome, " . $_SESSION['username'] . "</h2>";
echo "<h2> " . $redis->get('username') . " </h2>";
// echo "<h2>Welcome, " . $_SESSION['merchantid'] . "</h2>";
echo "<div class='profile-image'><img src='assets\profile.png' alt='Profile Image'></div>";
} else {
Expand Down

0 comments on commit efc70f1

Please sign in to comment.