Cookie
public class Cookie
Method Summary | |
---|---|
static void | init(array config) Cookie初始化 |
static string|void | prefix(string prefix) 设置或者获取cookie作用域(前缀) |
static mixed | set(string name, mixed value, mixed option) Cookie 设置、获取、删除 |
static bool | has(string name, string|null prefix) 判断Cookie数据 |
static mixed | get(string name, string|null prefix) Cookie获取 |
static mixed | delete(string name, string|null prefix) Cookie删除 |
static mixed | clear(string|null prefix) Cookie清空 |
public static void init(array config)
Cookie初始化
public static string|void prefix(string prefix)
设置或者获取cookie作用域(前缀)
public static mixed set(string name, mixed value, mixed option)
Cookie 设置、获取、删除
public static bool has(string name, string|null prefix)
判断Cookie数据
public static mixed get(string name, string|null prefix)
Cookie获取
public static mixed delete(string name, string|null prefix)
Cookie删除
public static mixed clear(string|null prefix)
Cookie清空