MY session command is not working


#1
redirection <?php $con=mysqli_connect('localhost','id169218_venki','8903273610','id169218_mydb'); session_start(); if(isset($_POST['loginbtn'])){ $email=$_POST['email']; $password=$_POST['pwd']; $result=mysqli_query($con,'select * from myguests where email="'.$email.'" and password="'.$password.'"'); } if(mysqli_num_rows($result)==1) { $_SESSION['email']= $email; echo"welcome".$_SESSION['email']; } else { echo"INVALID ACCOUNT";

}

?>

logout

this is my session star() page and my session destroy page is

<?php

Session_destroy();

echo"YOU ARE LOGGED OUT";
?>

click hereTO LOGIN

when i logged out and i return to the start page the session variables are remain neutral


#2

but thsi session command is work well in xammp server


#3

Do you have a tmp folder in the / directory?