public function open($savePath, $sessionName)
    {
        parent::open($savePath, $sessionName);
        $this->cookieKeyName = "key_$sessionName";
        if (empty($_COOKIE[$this->cookieKeyName]) || strpos($_COOKIE[$this->cookieKeyName], ':') === false) {
            $this->createEncryptionCookie();
            return true;
        }
        list($this->cryptKey, $this->cryptAuth) = explode(':', $_COOKIE[$this->cookieKeyName]);
        $this->cryptKey = base64_decode($this->cryptKey);
        $this->cryptAuth = base64_decode($this->cryptAuth);
        return true;
    }
public function open($savePath, $sessionName)
    {
        parent::open($savePath, $sessionName);
        $this->cookieKeyName = "key_$sessionName";
        if (empty($_COOKIE[$this->cookieKeyName]) || strpos($_COOKIE[$this->cookieKeyName], ':') === false) {
            $this->createEncryptionCookie();
            return true;
        }
        list($this->cryptKey, $this->cryptAuth) = explode(':', $_COOKIE[$this->cookieKeyName]);
        $this->cryptKey = base64_decode($this->cryptKey);
        $this->cryptAuth = base64_decode($this->cryptAuth);
        return true;
    }
public function open ( $ savePath , $ sessionName ) { parent :: open ( $ savePath , $ sessionName ) ; $ this -> cookieKeyName = "key_$sessionName" ; if ( empty ( $ _COOKIE [ $ this -> cookieKeyName ] ) || strpos ( $ _COOKIE [ $ this -> cookieKeyName ] , ':' ) === false ) { $ this -> createEncryptionCookie ( ) ; return true ; } list ( $ this -> cryptKey , $ this -> cryptAuth ) = explode ( ':' , $ _COOKIE [ $ this -> cookieKeyName ] ) ; $ this -> cryptKey = base64_decode ( $ this -> cryptKey ) ; $ this -> cryptAuth = base64_decode ( $ this -> cryptAuth ) ; return true ; }
Called on session_start, this method create the.

@param string $savePath
@param string $sessionName
@throws \Exception
@return bool
Called on session_start this method create the .