« See all FAQs for PHP Login & User Management with message center

How to print specific values e.g name, last name status, type, profile image?

1) Get user edit profile link.

<a href="edit_profile.php?user_id=<?php echo $_SESSION['user_id']; ?>">Edit Profile</a>

2) Get Logout link

<a href="dashboard.php?logout=1">Logout</a>

3) Get Welcom message?

Welcom <?php echo $_SESSION['first_name'].' '.$_SESSION['last_name']; ?>
4) Other values
User ID: $_SESSION['user_id']
First Name: $_SESSION['first_name']
Last Name: $_SESSION['last_name']
Email: $_SESSION['email']
User Status: $_SESSION['status']
User Type: $_SESSION['user_type']
Profile Image: $_SESSION['profile_img'];
by
by
by
by
by
by