Example #1
0
 public function __destruct()
 {
     setcookie('IgnaszakRegistry', serialize($this->registryArray), time() + Conf::getCookieLife(), Conf::getCookiePath());
 }
Example #2
0
 public function testCookieLife()
 {
     Conf::setCookieLife(1234);
     $this->assertEquals(1234, Conf::getCookieLife());
 }