How can we destroy the session, how can we unset the
variable of a session?
Answer Posted / murali
session can be destroyed by using session_destroy() function
and variable can be unset by unset($_session['name']), and
also write like this...
$_session['name']=='';
you can assign null.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What are the 3 types of sessions?
What good is polymorphism?
How does php work?
What is difference between compile time and run time polymorphism?
What is lazy loading in php?
What does addslashes do in php?
Where do we use get and post?
What is the difference between die () and exit () in php?
Which software is best for php?
What is PHP's configuration file called?
What's the best method for sanitizing user input with php?
How to call javascript function in php on button click?
What is uniqid php?
What is the apache?
What are the advantages of indexes in php?