Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
s_ibanshou
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋林
s_ibanshou
Commits
afcc97a8
Commit
afcc97a8
authored
Sep 13, 2017
by
夏彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改session cookie时间
parent
efc3bb75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
user.php
e/member/class/user.php
+2
-2
No files found.
e/member/class/user.php
View file @
afcc97a8
...
@@ -6,10 +6,10 @@ if(!defined('InEmpireCMS'))
...
@@ -6,10 +6,10 @@ if(!defined('InEmpireCMS'))
define
(
'InEmpireCMSUser'
,
TRUE
);
define
(
'InEmpireCMSUser'
,
TRUE
);
//set session expiration
//set session expiration
ini_set
(
'session.gc_maxlifetime'
,
1
728
00
);
ini_set
(
'session.gc_maxlifetime'
,
1
2960
00
);
// each client should remember their session id for EXACTLY 1 hour
// each client should remember their session id for EXACTLY 1 hour
session_set_cookie_params
(
1
728
00
);
session_set_cookie_params
(
1
2960
00
);
session_start
();
session_start
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment