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 is csrf mvc?

0 Answers  


How to restrict the number of users login ? For ex:- if the allowed login is 10, for 11th user, the application should restrict them from login.

1 Answers  


Is php better than java?

0 Answers  


What is is_null() in php?

0 Answers  


what is difference between PHP4 , PHP5

0 Answers   Net Solution,






Which escape sequences can be used in single quoted strings in php?

0 Answers  


Is php a low level language?

0 Answers  


can any one find and tell the difference between dot net and php which one is best ? which one we get more salary? which one is stable and which one is best for freshers and also better in future and carrer ? which one we wil get more salary sir ? please send ur valuable suggestions to kiranpulsar2007@gmail.com

0 Answers  


How can we connect to a mysql database from a php script?

0 Answers  


does current version of mysql (myisam) supports foreign keys ?

2 Answers  


Explain the installation of PHP on UNIX systems?

0 Answers  


What is difference Between PHP 5 and 7?

0 Answers  


Categories