> 93 # When deserialized we are called and need to check if the
> stored IP address equals the client's
> 94 function __wakeup() {
> 95 global $Log;
> 96 if ($_SERVER['REMOTE_ADDR'] !=
> $this->Night['IP']) {
> 97 $Log->Warning('IP Address changed during
> sleep and wakeup, will clear userdata');
> 98 $this->Data = Array();
> 99 };
> 100 }
>
> Upon sleep it stores the IP and time in the session data, and
> when it smells
> coffee my object wakes up, checks if he's still being used on the
> same host
> and if not the userdata is plainly cleared.
>
I hope none of your site visitors are on AOL as the IP can change between
page requests for AOL users.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php