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 does mysqli_query return?
Why triggers are used in mysql?
Which function is used in php to check the data type of any variable?
How is it possible to set an infinite execution time for php script?
Write a program to show the joining of two strings in php?
How does php sessions work?
How can we execute a php script using command line?
Explain what is meant by pear in php?
What is meant by ‘passing the variable by value and reference' in php?
What is difference between post and put in rest?
Why do you need php?
What is the use of header in php?
How to create a table using php?
How can you send email in php?
What is explode() in php?