public function write($id, $data)
    {
        return parent::write($id, $this->encrypt($data, $this->key));
    }
public function write($id, $data)
    {
        return parent::write($id, $this->encrypt($data, $this->key));
    }
public function write ( $ id , $ data ) { return parent :: write ( $ id , $ this -> encrypt ( $ data , $ this -> key ) ) ; }
Encrypt the data and write into the session

@param string $id
@param string $data
Encrypt the data and write into the session