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 is zend studio for?

537


How can MYSQL functions be available with PHP?

547


Explain what does the unset() function means?

574


What is PHP's configuration file called?

566


What is instantiation?

1740






How do you explain independent and dependent variables?

491


What is new static in php?

531


What is class extend in php?

538


What is use of in_array() function in php?

538


What are php magic quotes?

507


What is config file in php?

534


what is benefit of magento?

2033


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?

486


Tools used for drawing er diagrams?

551


Can you pass an array into a function?

556