/** * Write session data * * @author Art <*****@*****.**> * @link http://php.net/manual/en/sessionhandlerinterface.write.php * * @param string $sessionID The session id. * @param string $sessionData The encoded session data. This data is the * result of the PHP internally encoding * the $_SESSION superglobal to a serialized * string and passing it as this parameter. * Please note sessions use an alternative serialization method. * * @return bool */ public function write($sessionID, $sessionData) { return $this->client->set($this->prefix . $sessionID, $sessionData, ALO_SESSION_TIMEOUT); }
function testGetArray() { $setkey = md5(microtime(true) . mt_rand(PHP_INT_MIN, PHP_INT_MAX)); $this->wrapper->set($setkey, 1); $this->assertNotEmpty($this->wrapper[$setkey]); }