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

Does php need to be installed?

726


What is the difference between fopen() and fclose()?

844


write a note on Testing the web site

1625


What is the difference between require_once and require in php?

805


What is the difference between query and inquiry?

696


What are the file upload settings in configuration file?

759


How to create a session? How to set a value in session?

756


What are the different components used in php for formatting?

764


For image work which library is used in php?

747


Why do we use interface in php?

735


Is php secure?

720


What is variable declaration?

688


What is the role of php.ini file?

776


Tell me can the value of a constant change during the script's execution?

912


Why php is also called as scripting language?

742