diff --git a/src/Cm/RedisSession/Handler.php b/src/Cm/RedisSession/Handler.php index b901452..9482b67 100644 --- a/src/Cm/RedisSession/Handler.php +++ b/src/Cm/RedisSession/Handler.php @@ -416,6 +416,19 @@ protected function hasConnection() } } + /** + * Set/unset read only flag + * + * @param boolean $readOnly + * @return self + */ + public function setReadOnly($readOnly) + { + $this->_readOnly = $readOnly; + + return $this; + } + /** * Fetch session data *