-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsession.php
More file actions
executable file
·54 lines (53 loc) · 2.08 KB
/
Copy pathsession.php
File metadata and controls
executable file
·54 lines (53 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/*{{{LICENSE
+-----------------------------------------------------------------------+
| SsdPHP Framework |
+-----------------------------------------------------------------------+
| This program is free software; you can redistribute it and/or modify |
| it under the terms of the GNU General Public License as published by |
| the Free Software Foundation. You should have received a copy of the |
| GNU General Public License along with this program. If not, see |
| http://www.gnu.org/licenses/. |
| Copyright (C) 2015-2020. All Rights Reserved. |
+-----------------------------------------------------------------------+
| Supports: http://www.SsdPHP.com |
+-----------------------------------------------------------------------+
}}}*/
/*
* Session = array(
* 'new_cache_expire' => 30, //存活时间(分钟)
* 'path' => '/',
* 'domain' => '',
* 'secure' => false,
* 'httponly' => true,
* 'save_path' => null,
* 'session_name' => 'SSDPHPSESSID',
* 'sid_prefix' => 'SSDPHP:SESSION:',//redis key 前缀
* 'sessionType' => '',//session类型,默认phpsession处理机制,File,Redis
* )
*/
return array(
"session"=>array(
"home"=>array(
'sessionType' => "Redis",
'session_name' => "token",
'cookie_path' => "/",
'new_cache_expire' => 180,
'sid_prefix' => "ZHEDIMARKET:HOME:SESSION:",
),
"api"=>array(
'sessionType' => "Redis",
'session_name' => "token",
'cookie_path' => "/",
'new_cache_expire' => 180,
'sid_prefix' => "ZHEDIMARKET:HOME:SESSION:",
),
"admin"=>array(
'sessionType' => "Redis",
'session_name' => "token",
'cookie_path' => "/",
'new_cache_expire' => 180,
'sid_prefix' => "ZHEDIMARKET:ADMIN:SESSION:",
)
)
);