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
Explain the advantages of using PHP?
What is static variable in php?
What is difference between required and require_once in php?
How send email using php?
What is csrf cookie?
When you want to show some part of a text displayed on an html page in red font color? What different possibilities are there to do this? What are the advantages/disadvantages of these methods?
How do I escape in php?
How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain
What is delimiter php?
What is php and what does it do?
So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?
What is http php?
What is php and why we use it?
What does the array operator '===' means?
What is return value in php?