Ejemplo n.º 1
0
 /**
  * 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;
 }
 public function testGetPath()
 {
     $cookie = new SessionCookie();
     $cookie->setPath('foo');
     $this->assertEquals('foo', $cookie->getPath());
 }