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

Answer Posted / lakshmi

using session_destroy()we can destroy the session and using
session_unset() we can delete all the session variable

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we embedded directly PHP code into XHTML document? State Whether True or False?

1264


What is the purpose of break and continue statement?

526


What is php artisan tinker?

509


Explain what does $_server means?

579


Which method removes the last element from the end of an array?

498






Why do we use htaccess and where?

566


What are the advantages of stored procedures in php?

499


What are php errors?

499


what is the use of include_once in php?

541


What is the difference between require and include in php?

513


How do you access a get requests url parameter with php?

536


What is variable declaration?

496


How to pass variables and data from php to javascript?

513


What does the scope of variables means?

587


Does php support multiple inheritances?

532