Printing User Name, Email Id and Address using session variable
Using $session() function, we can print user name, email id and address of the user.
session_start (); #session start
echo "Your Email ID is ".$session_email."<br>";
echo "Your Name is ".$session_name."<br>";
echo "Your Address is ".$session_address;
The output of this program will:
Your Email id is email@example.com
Your Name is Raj
Your Address is Delhi.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.