×
Home About Us Products Services News Free Scripts Contact
news php scripts and software

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


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

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

 
<< Go back