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
Describe PHP error and logging information?
what is difference between PHP4 , PHP5
List the different types of print functions available in php?
Which function would you use to determine the length of a string in php?
Which function would you use to format date information in php?
Can we extend multiple classes in php?
Explain Constant in Class?
Why is php so popular?
Is php outdated 2019?
What is the main difference between php 4 and php 5?
What is faster?
Do you know how to delete a file from the system?
What are php magic methods?
Difference between array_combine and array_merge?
Why php script is not running in browser?