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 should a model be structured in mvc?
Does cors prevent csrf?
What does the expression exception::__tostring means?
What is string and its function?
How to return a value back to the function caller?
What is the use of return in php?
How to call javascript function in php without any event?
How to do single and multi line comment in php?
How to get number of days between two given dates using PHP?
What does odbc do in context with php?
How many escape sequences are recognized in single-quoted strings?
What is the use of dual table in mysql?
Which is the correct way to check if a session has already been started ?
Why sessions are used in php?
How to count a number of words in a string in php?