Answers for "to remove all global session we use session_destroy() function"

PHP
6

destroy session php

<?php 
 session_start(); // start session
 session_destroy();  // Delete whole session
// OR
unset($_SESSION['username']); // delete any specific session only
?>
Posted by: Guest on June-15-2020
1

php session destroy

<?php
// Destroy the currently active session.
session_destroy();
?>
Posted by: Guest on April-14-2020

Code answers related to "to remove all global session we use session_destroy() function"

Browse Popular Code Answers by Language