WriteSafeSessionHandler::gc

public WriteSafeSessionHandler::gc($max_lifetime)

Cleans up expired sessions (garbage collection).

Parameters

string|int $maxlifetime Sessions that have not updated for the last maxlifetime seconds will be removed:

Return value

bool true on success, false on failure

Overrides SessionHandlerInterface::gc

See also

http://php.net/sessionhandlerinterface.gc

File

core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php, line 52

Class

WriteSafeSessionHandler
Wraps another SessionHandlerInterface to prevent writes when not allowed.

Namespace

Drupal\Core\Session

Code

public function gc($max_lifetime) {
  return $this->wrappedSessionHandler->gc($max_lifetime);
}
doc_Drupal
2016-10-29 09:56:49
Comments
Leave a Comment

Please login to continue.