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

Write a program to display reverse of any number?

516


Is php a cms?

533


What are the three parts of an http request?

575


What are the string functions in php?

526


How is traits used in php?

540






What is url encoding and decoding in php?

558


Tell me how can we change the maximum size of the files to be uploaded?

553


Tell me what is the default session time in php?

548


Which php global variable is used for uploading a file?

510


Why laravel is the best php framework in 2019?

521


What is the empty function?

551


Maine 12th ke bad 2 years ka web designing ka course kiya hai. Php me achcha hu. Ek fresher ko is field me kitna mil sakta hai ?

4775


Differentiate echo vs. Print statement.

545


How will you calculate days between two dates in PHP?

542


How to access standard error stream in PHP?

589