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

Answer Posted / sri harsha

session can be destroyed by using session_destroy() function
and variable can be unset by unset($_session['name']).

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is variable give example?

553


What are include() and require() functions?

515


Tell me what are the correct and the most two common way to start and finish a php block of code?

525


What is json php?

529


How long is a php session valid?

513






Why super () is used in java?

526


What is php artisan tinker?

507


Is empty in php?

542


Tell me what the difference between the 'bitwise and' operator and the 'logical and' operator?

529


What is use of preg_replace in php?

515


What is static method php?

549


What is the difference between javascript and php?

521


Why die is used in php?

556


How to download and install php on windows?

601


How can we calculate the similarity between two strings?

575