(Asf >= 2.1.9)
Cookie类接口
在开启命名空间情况下(asf.use_namespace=1)类名为 Asf\Http\CookieInterface
<?php interface Asf_Http_CookieInterface { public boolean prefix(string $name) public boolean set(string $name, string $value) public boolean forever(string $name, string $value) public boolean has(string $name) public mixed get([string $name = '']) public boolean del(string $name [, string $...]) public boolean clear(void) }
Asf_Http_Cookie 类
在开启命名空间情况下(asf.use_namespace=1)类名为 Asf\Http\Cookie
<?php final class Asf_Http_Cookie implements Asf_Http_CookieInterface { public Asf_Http_Cookie __construct([array $configs]) public boolean prefix(string $name) public boolean set(string $name, string $value) public boolean forever(string $name, string $value) public boolean has(string $name) public mixed get([string $name = '']) public boolean del(string $name [, string $...]) public boolean clear(void) }