How can we destroy the session, how can we unset the
variable of a session?
Answer Posted / pawan chhabra
// Create a logout.php file then..
<?php
session_start();
header("location:login.php");
session_destroy();
??
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
Which function(s) in PHP computes the difference of arrays?
What are php applications?
What is the use of strpos in php?
How can I prevent sql-injection in php?
How to create a session? How to set a value in session? How to remove data from a session?
How to remove an empty directory?
Which is best framework for php?
Name some of the functions in php.
What is php trait?
What's the difference between using mysql_ functions and pdo?
What is php? Why it is used?
Which is correct about mysqli and pdo?
How do you identify independent and dependent variables in research?
how to track user logged out or not? when a user is idle?
Is it possible to submit a form with a dedicated button?