HI herkes
1. As user enter username and password in sign-in-form.php then values are collected in sign-in-action-form.php page and the i am storing username into session variable like this In database i have a table named employee
<a href="logout_file.php">Sign Out</a>
if (username and passwords are matched)
{
session_start();
$_SESSION['employee']['id'] = $row['User_Id'];
$_SESSION['employee']['username'] =$row['Username'];
}
then on each page i am passing logout-file.php link and checking session variable like this
<body bgcolor="white">
<a href="logout_file.php">Sign Out</a>
<?php
session_start();
if(!isset($_SESSION['employee']))
{
echo "Your are Logged Out";
exit;
}
else
{
echo "Welcome Mr.".$_SESSION['employee']['username']; //check it
}
?>
Body data like other links
</body>
Şimdi her sayfaya ben böyle link verdik
Now listen my problem on each page i am printing echo "Welcome Mr.".$_SESSION['employee']['username']; So think i am on signinactionpage where there other link like show file,upload file etc.. with sign out button now as i click on sign out button i am redirected to login page(no probelm up to here) But when i press back button (now i am logeed out) then i am again in signinaction form and Mr.Deepak.Narwal is still displaying there why so if i am looed out session destroyed and why this name is displaying..why so
2. along with this one more error is displaying on each page which contain logout button and this session coading...
Uyarı: session_start () [function.session-start]: session cache limiter gönderilemiyor - başlıklar zaten (çıkış E başladı: \ xampp \ htdocs \ upload_file.php: 6) gönderdiğiniz E: \ xampp \ htdocs \ upload_file.php hat 7
My logout-file.php page is like this
<?php
session_start();
session_unset();
session_destroy();
header ("Location: signinform.php");
?>