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


Please Help Members By Posting Answers For Below Questions

What are the advantages of php?

738


Is multilevel inheritance possible in php?

746


Which are the best start and end tags to use?

789


What the limitation of header() function in php?

697


What is a PHP Filter?

839


What does $_env mean?

776


Php says that an array is an ordered map. But how the values are ordered in an array?

828


What the use of var_dump()?

817


What is smarty?

736


Explain about the connective abilities of the PHP?

806


Which operator is used to concatenate two strings in PHP?

786


What is difference between rest and http?

738


What is the scope of a variable defined in a function?

764


Explain the difference between unlink() and unset()?

743


What is zend studio for?

735