<?php
session_start();
?>
<?php
session_start(); //start a session
$_SESSION['username'] = 'Emanuela'; //Define session username as Emanuela
?>
<?php
session_start(); //start a session
if(isset($_SESSION['username'])) //Check if the session defined in page_A.php exist or not
{
echo $_SESSION['username']; //Display the session username since its available
}
else
{
echo 'No session found'; //Display error message if session username does not exist
}
?>
<?php
isset($_SESSION['username']); //Returns True if session username exists and False if it does not
?>
<?php
session_start(); //start a session
if(isset($_SESSION['username'])) //Check if the session defined in page_A.php exist or not
{
echo 'Welcome '.$_SESSION['username']; //Display the session username since its available
}
else
{
echo 'No session is established yet, please login to proceed.'; //Display error message if session username does not exist
}
?>
<?php
session_start(); //start a session before any other code
session_unset(); //unset the started session
session_destroy(); //Now destroy all created sessions
?>
Our objective is to reach a place where our services will be highly regarded by businesses from various industrial domains for building their innovative busines solutions with our cutting-edge technological expertise, interactive designs and uncompromised quality.
We aspire to help businesses ranging from startups to enterprises, who reach out to us with their requirements, in achieving great lengths, expanding their reach, upscaling their products, and generate a large user-base with our outstanding and cost-effective services.
Copyright © 2011 - 2024 | All Rights Reserved