Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-shop-fe2
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xuhongyun
8 years ago
Commit
e3ff4d19df1206ea60fc3aacb1f92136adfe4c92
1 parent
463ceee1
修改会话有效时长为10小时
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
code/apps/common/controllers/index.js
code/index.js
code/apps/common/controllers/index.js
View file @
e3ff4d1
...
...
@@ -16,7 +16,7 @@ module.exports=function(app) {
console
.
log
(
n
);
var
item
=
n
.
split
(
"="
);
if
(
item
.
length
>
1
&&
item
[
0
]
==
"PHPSESSID"
)
{
res
.
cookie
(
item
[
0
],
item
[
1
],
{
maxAge
:
72
00000
,
httpOnly
:
true
,
domain
:
".yohobuy.com"
});
res
.
cookie
(
item
[
0
],
item
[
1
],
{
maxAge
:
360
00000
,
httpOnly
:
true
,
domain
:
".yohobuy.com"
});
}
});
}
...
...
code/index.js
View file @
e3ff4d1
...
...
@@ -13,7 +13,7 @@ var grayroute = require("./mid/grayrouter");
var
options
=
{
secret
:
'yohobuy.shops'
,
//session配置
// cookie: {secure: false, maxAge: 7200000},
cookie
:
{
secure
:
false
,
maxAge
:
72
00000
,
domain
:
'.yohobuy.com'
},
cookie
:
{
secure
:
false
,
maxAge
:
360
00000
,
domain
:
'.yohobuy.com'
},
resave
:
false
,
saveUninitialized
:
true
,
rolling
:
true
...
...
Please
register
or
login
to post a comment