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