What are the ways we can destroy a session variable ?
Answers were Sorted based on User's Feedback
Answer / nilsoft
There are three ways
1. session_destroy()
2. session_unset()
3. session_unregister()
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / jeevi
it will destroy all the variables.
session.invalidate();
if you want to destroy individual variables, use this command.
session.removeAttribute("sessionvariablename");
| Is This Answer Correct ? | 3 Yes | 14 No |
What is an operator in php?
Tell me what kind of things have you done on the social side?
Who developed php?
Explain what does the unlink() function means?
How I can control asset documents without GR/IR?
0 Answers i2U Systems, Industrial Hand Protection, Mutha Technosoft,
Explain mixed and callback functions?
What is mean by RSS?How can i use this?
How to delete an element from an array?
What are getters and setters and why are they important?
What is meant by an associative array?
Why use php artisan serve?
What the limitation of header() function in php?