How can we destroy the session, how can we unset the
variable of a session?

Answer Posted / rajan vardawaj

session_unregister() - Unregister a global variable from the
current session session_unset() - Free all session variables

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the ioncube php loader?

744


Does empty check for null?

684


What is csrf cookie?

637


Is PHP runs on different platforms (Windows, Linux, Unix, etc.)?

687


When viewing an html page in a browser, the browser often keeps this page in its cache. What can be possible advantages/disadvantages of page caching? How can you prevent caching of a certain page (please give several alternate solutions)?

720






Which function is used in php to check the data type of any variable?

677


Why is overriding runtime?

716


What is PECL?

943


How do you destroy a particular or all Sessions?

736


What is the difference between array_merge() and array_merge_recursive() in php?

707


What advance thing in php7?

677


Tell me how do you execute a php script from the command line?

685


What are psrs? Choose 1 and briefly describe it?

1102


Tell me what does the initials of php stand for?

709


Tell me how to create a session? How to set a value in session? How to remove data from a session?

672