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
How do I escape in php?
How do I find out the number of parameters passed into function9?
Does php have a future?
What is php explain how php works?
What does empty mean in php?
Which php framework is best for security?
What are the difference between echo and print?
Tell us how can we display the output directly to the browser?
Explain setcookie() function in php?
Explain the different types of errors in php.
What is difference between single quotes and double quotes in php?
What is a php object?
Where php basically used?
What's the difference between __sleep and __wakeup?
How do you check is php not empty?