protected function registerToHandler($name, $value, $crypt = false)
    {
        if (is_array($value) || is_object($value)) {
            $value = base64_encode(serialize($value));
        }

        if (true === $crypt) {
            $value = $this->getCrypt()->encode($crypt);
        }

        $this->getHandler()->write($name, $value);
    }
protected function registerToHandler($name, $value, $crypt = false)
    {
        if (is_array($value) || is_object($value)) {
            $value = base64_encode(serialize($value));
        }

        if (true === $crypt) {
            $value = $this->getCrypt()->encode($crypt);
        }

        $this->getHandler()->write($name, $value);
    }
protected function registerToHandler ( $ name , $ value , $ crypt = false ) { if ( is_array ( $ value ) || is_object ( $ value ) ) { $ value = base64_encode ( serialize ( $ value ) ) ; } if ( true === $ crypt ) { $ value = $ this -> getCrypt ( ) -> encode ( $ crypt ) ; } $ this -> getHandler ( ) -> write ( $ name , $ value ) ; }
register a new session to handler

@param string $name
@param mixed $value
@param bool|false $crypt
register a new session to handler