/** * @returns AIS2Login */ public function newLoginUsingCookie(CosignServiceCookie $cookie) { $ok = $cookie->getValue() != "wrong_cookie"; return new FakeLogin($ok); }
public function login(AIS2ServerConnection $serverConnection) { $connection = $serverConnection->getHttpConnection(); $connection->addCookie($this->cookie->getName(), $this->cookie->getValue(), 0, '/', $this->cookie->getDomain()); return true; }