getExpire() public method

public getExpire ( ) : integer
return integer the time the cookie expires. This is a Unix timestamp so is in number of seconds since the epoch.
コード例 #1
0
ファイル: THttpCookieTest.php プロジェクト: pradosoft/prado
 public function testSetExpire()
 {
     $cookie = new THttpCookie('name', 'value');
     $exp = time() + 3600;
     $cookie->setExpire($exp);
     self::assertEquals($exp, $cookie->getExpire());
 }