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
Tell me what's the difference between include and require?
What is the difference between unset and unlink?
How to assigning a new character in a string using php?
What is file upload?
What does PEAR stands for?
What is meant by ‘passing the variable by value and reference' in php?
What is the use of hooks?
What is class extend in php?
Why sessions are used in php?
What is interface? Why it is used?
can we swap two different string using php for example:-- before swapping:-- 1 string :-hello friend, 2 string :-my dear, after swapping that strings will be: 1.hello dear, 2.my friend.
How to check an element is exists in array or not in php?
What are some of the advanced features of php?
What is the use of callback in php?
How do I run php?