How can we destroy the session, how can we unset the
variable of a session?
Answer Posted / sreenia
the better way of destroying a session is to first unset all
the values of $_SESSION variables individually, and then use
the session_destroy() function
| Is This Answer Correct ? | 17 Yes | 6 No |
Post New Answer View All Answers
How does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?
What are getters and setters and why are they important?
Explain type casting and type juggling.
What does type casting mean in php? Explain with an example?
What is php and what does it do?
What is the empty function?
How long does a session last in php?
Who is the father or inventor of php?
Does facebook use php framework?
Does apache use php?
What are the benefits of composer?
Does csrf token change?
Is php case sensitive?
What is meant by MIME?
What is $_ post in php?