public function getSecondsRemaining() { // The timeout does not seem to be correctly implemented in Jackrabbit. Thus we // always return the max timeout value if (null === $this->expire) { return PHP_INT_MAX; } return $this->expire - time(); }