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
What are the main error types in php and how do they differ?
Tell me what types of loops exist in php?
What will the ?getdate() function returns in PHP?
How many functions are there in php?
Tell me what is the difference between characters 34 and x34?
What is the major php security hole? How to avoid?
What is php7?
What is the static variable in function useful for?
How is a constant defined in a PHP script?
What are the differences between mysqli_connect and mysqli_pconnect?
What are escaping characters?
Which php global variable is used for uploading a file?
Is laravel easy to learn?
If we login more than one browser windows at the same time with same user and after that we close one window, then is the session is exist to other windows or not? And if yes then why? If no then why?
Echo is used to Display message on screen. Which is used with echo to not output the trailing newline?