private function sessionExpiry()
    {
        $dateTime = new DateTime();
        if (null !== $this->sessionOptions['SessionExpiry']) {
            $expiryDateTime = new DateTime($_SESSION['Expiry']);
            $expiryDateTime->add(new DateInterval($this->sessionOptions['SessionExpiry']));
            if ($expiryDateTime < $dateTime) {
                $this->destroy();
            }
        }
    }
private function sessionExpiry()
    {
        $dateTime = new DateTime();
        if (null !== $this->sessionOptions['SessionExpiry']) {
            $expiryDateTime = new DateTime($_SESSION['Expiry']);
            $expiryDateTime->add(new DateInterval($this->sessionOptions['SessionExpiry']));
            if ($expiryDateTime < $dateTime) {
                $this->destroy();
            }
        }
    }
private function sessionExpiry ( ) { $ dateTime = new DateTime ( ) ; if ( null !== $ this -> sessionOptions [ 'SessionExpiry' ] ) { $ expiryDateTime = new DateTime ( $ _SESSION [ 'Expiry' ] ) ; $ expiryDateTime -> add ( new DateInterval ( $ this -> sessionOptions [ 'SessionExpiry' ] ) ) ; if ( $ expiryDateTime < $ dateTime ) { $ this -> destroy ( ) ; } } }
Expire session after a specified time.

@return void
Expire session after a specified time .