Search found 1 match

by shashanksingh
Thu Jan 20, 2011 1:30 pm
Forum: General Discussion
Topic: session_destroy
Replies: 2
Views: 399

session_destroy

I used the above code in my index.php <?php session_start(); if(!isset($_SESSION['login'])) { header("Location: login.php"); } //rest code ?> and I have another file logout.php <?php session_unset(); session_destroy(); header("Location:login.php"); ?> but even after loggin out I ...