Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa PHP How can we destroy the session, how can we unset the variable of a session?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


brijesh
How can we destroy the session, how can we unset the variable of a session?
1 Answer(s)      4 years and 2 months ago
Posted in : PHP


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


Advertisement
View Answers

November 15, 2010 at 5:25 PM


Hi all,

You can destroy session by using session_destroy() function.

You can unset the variable of a session by using unset($session['name']), and you can also assign null value like $session['name']==' '.

Thanks



Related Tutorials/Questions & Answers:
Advertisements
 

 

 

DMCA.com