Fri, 17 May 2024


How to destroy the variables associated with a session in 4.0.6 and below?

By: Peter, NetArt Media
Sun, 1 August 2021

In order to destroy the variables associated with a session in 4.0.6 and below, you should use the special function session_unregister, for example:

<?php
session_start();
session_unregister($userName, "userName");
session_destroy();
unset($userName);
...
?>


Category: PHP Examples
Share this post:



See All Scripts






Subscribe for our newsletter

Receive the latest blog posts direct in your mailbox