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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / lakshmi

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

Is This Answer Correct ?    2 Yes 0 No

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

Answer / rajan vardawaj

session_unregister() - Unregister a global variable from the
current session session_unset() - Free all session variables

Is This Answer Correct ?    2 Yes 4 No

Post New Answer

More PHP Interview Questions

What language is php based on?

0 Answers  


Explain different types of errors in PHP (i.e. arguments in errorreporting function)?

8 Answers   Base2 Infotech, DCI, Microsoft, Tata Elxsi,


what is constructor

0 Answers  


How do you develop your own PHP extension ?

2 Answers  


How to remove leading and trailing spaces from user input values in php?

0 Answers  






What is the difference between php and cakephp?

0 Answers  


What is instantiation?

0 Answers  


Is empty check in php?

0 Answers  


What is prepared statement in php?

0 Answers  


Is php case sensitive?

0 Answers  


What is a php tag?

0 Answers  


What is form submission?

0 Answers  


Categories