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 does api connect to database?
What is the use of htmlentities in php?
How to write in a file in php?
What is empty php?
Is nan in php?
What are the method available in form submitting?
Tell me what is the importance of "action" attribute in a html form?
How to add comments in php?
When use javascript vs php?
Code to upload a file in PHP?
Is php 5 still supported?
What does session start do in php?
What is the functionality of the functions strstr() and stristr()?
What is var_dump?
How to write php function in html onclick?