How we can start session


<?php
session_start();
$user_check=$_SESSION['login_user'];
if(!isset($user_check))
{
header("Location: login.php");
}
?>

<?php
session_start();
if ($_SESSION['username'])
echo "";
else
die("You are not Authorise to view this page at this time. <a href='url'>Please Click Here</a> to return to Main Login.");
?>

to start session

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.