This function Unregister a global variable from the current session.

Syntax: session_unregister ( string name )

Description:

The parameter “string name” is specified to be unregistered.

This function unregisters a session variable registered with session_register(). If $_SESSION was used to register the session variable, use unset() to unregister it.

Example:
Code:

 
session_start();
session_register("session_variable");
$session_variable   = "xyz123";
print "session_variable: " . $session_variable;
session_unregister("session_variable");
eXTReMe Tracker