Fri, 17 May 2024


How to destroy the current session and any variables associated with it?

By: Anton, NetArt Media
Fri, 30 July 2021

In order to destroy the current session and any variables associated with it, you should use the special function called session_destroy()

<?php
...
session_destroy();
...
?>


Category: PHP Examples
Share this post:



See All Scripts






Subscribe for our newsletter

Receive the latest blog posts direct in your mailbox