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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of break and continue statement?

522


Is overloading possible in php?

514


What is singleton class in php?

535


What is mean tnq

1077


Write a program using while loop in php?

569






What is psr in php?

604


What is php used for?

521


What is the difference between abstract class and interface in php?

521


What are the methods to submit form in php?

525


Tell me what the difference between the 'bitwise and' operator and the 'logical and' operator?

529


Explain me is it possible to destroy a cookie?

555


Which function would you use to merge two arrays in php?

573


Can you specify the "new line" character in single-quoted strings?

542


Is php 5 still supported?

522


What is php array function?

538