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 to check whether a number is prime or not?
Explain soundex() and metaphone().
Is php 5 still supported?
Differences between get, post and request methods ?
Where session is stored?
List functions available to sort an php array?
Can we set session value in javascript?
What is the difference between for and foreach loop in php?
Why is php so popular?
Explain what are psrs? Choose 1 and briefly describe it?
What is the difference between overloading and overriding in php?
Which functions are used to count the total number of array elements in php?
Tell me in php, objects are they passed by value or by reference?
What are the main error types in php and how do they differ?
Differentiate between php5 and php7?