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
What does the arrow mean in php?
What is Type hinting in PHP?
Explain which cryptographic extension provide generation and verification of digital signatures?
List some features of php that are deprecated in php
Is server side a session?
What is the best way to change the key without changing the value of a php array element?
What is inheritance in php? How many types of inheritance supports php?
Explain what is the difference between mysql_fetch_array() and mysql_fetch_assoc()?
Explain PHP?
What is the function of trim?
How can I learn php fast?
What is a composer?
How to block direct directory access in PHP?
How can we pass the variable through the navigation between the pages?
Where is session value stored?