Answer Posted / anuj kumar gupta
session_destroy() — Destroys all data registered to a session
session_unregister() — Unregister a global variable from the
current session
session_unset() — Free all session variables
If globals is on, you'll have to unset the
$_SESSION[varname] as well as the $varname.
Like:
unset($_SESSION[varname]);
unset($varname);
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How does the identity operator === compare two values?
Which function would you use to replace a record in a database in php?
How would you determine the size of a file in php?
What is xss and csrf?
What is the meaning of a final class and a final method?
Where are php configuration settings stored?
Can you convert php to html?
Why would we use === instead of ==?
How cookies are transported from servers to browsers?
What are the main error types in php and how do they differ?
What is the use of curl()?
What is the function mysql_pconnect() useful for?
Which php framework is best?
What is a php form?
What is global array in php?