/**
  * Overrides the default cookie.
  *
  * @param Flex\SessionCookie
  * @return Flex\SessionProvider
  */
 public function overrideCookie(SessionCookie $cookie)
 {
     $this->cookie = $cookie;
     session_set_cookie_params($cookie->getExpires(), $cookie->getPath(), $cookie->getDomain(), $cookie->isSecure(), $cookie->isHttpOnly());
     return $this;
 }