mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进cookie类
This commit is contained in:
@@ -24,17 +24,19 @@ class cookieTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
protected $default = [
|
||||
// cookie 名称前缀
|
||||
'prefix' => '',
|
||||
'prefix' => '',
|
||||
// cookie 保存时间
|
||||
'expire' => 0,
|
||||
'expire' => 0,
|
||||
// cookie 保存路径
|
||||
'path' => '/',
|
||||
'path' => '/',
|
||||
// cookie 有效域名
|
||||
'domain' => '',
|
||||
'domain' => '',
|
||||
// cookie 启用安全传输
|
||||
'secure' => false,
|
||||
'secure' => false,
|
||||
// httponly设置
|
||||
'httponly' => '',
|
||||
'httponly' => '',
|
||||
// 是否使用 setcookie
|
||||
'setcookie' => false,
|
||||
];
|
||||
|
||||
protected function setUp()
|
||||
|
||||
Reference in New Issue
Block a user