05-16-2009, 08:21 PM
|
#7 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Quote:
Originally Posted by Wildhoney
How about clearing the session on the __destruct?
php Code:
class TalkPHP_Login { public function __destruct() { session_destroy(); unset($_SESSION); }}$pLogin = new TalkPHP_Login (); unset($pLogin);
|
What's the significance of calling session_destroy() before using unset() ??
|
|
|
|