You are here

public function SessionProxy_Backend_Default::writeProxy in Session Proxy 7

Session write proxy that will allow us to disable session writing if we are master of the storage.

File

lib/SessionProxy/Backend/Default.php, line 16

Class

SessionProxy_Backend_Default
Default implementation relies on a custom storage engine.

Code

public function writeProxy($sessionId, $serializedData) {
  if ($this
    ->isWriteEnabled()) {
    return $this->storage
      ->write($sessionId, $serializedData);
  }
}