### cookie
> 在controller 或 model 中引入:
```
use PHPt\lib\cookie;
```
> 在方法中实例化:
```
$c = new cookie();
```
### 储存
```
$c -> COOKIE("key", "ourphp", 1);
```
相当于 setcookie("key", "ourphp", time() + 86400); 保存24小时
| 参数一:键值 | 参数二:要储存的值 |
| --- | --- |
### 读取
```
$c -> COOKIE("key", "", 2);
```
| 参数一:键值 | |
| --- | --- |
### 删除
```
$c -> COOKIE("key", "", 3);
```
| 参数一:键值 | |
| --- | --- |
### 判断
存在返回true 不存在返回false
```
$c -> COOKIE("key", "", 4);
```
| 参数一:键值 | |
| --- | --- |