check if session is false and is not empty code example
Example: check if session empty
session_start();
if(!empty($_SESSION['mySession'])){
//session is not empty
}
else{
//empty
}
session_start();
if(!empty($_SESSION['mySession'])){
//session is not empty
}
else{
//empty
}