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

Answer Posted / sreenia

the better way of destroying a session is to first unset all
the values of $_SESSION variables individually, and then use
the session_destroy() function

Is This Answer Correct ?    17 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where is my php ini file?

555


Explain php parameterized functions.

555


What is difference between session and cookies in php?

476


Is json a string php?

520


Explain the ternary conditional operator in php?

598






What are the difference between overloading and overriding in oops?

537


How do I install php?

596


What is final keyword in php?

544


What is the most convenient hashing method to be used to hash passwords?

503


What is the difference between == and === operator in PHP?

466


What type of headers that PHP supports?

614


How do I update php?

574


Which is better mysql or sql?

527


Tell me what does the php error 'parse error in php - unexpected t_variable at line x' means?

559


Can I use php in visual studio?

529