Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lolo888
ISPConfig 3
Commits
efdd1a3f
Commit
efdd1a3f
authored
Jul 28, 2014
by
Marius Cramer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed: FS#3556 - Der in Session-Timeout eingegebene Wert wird nicht durch Aktivität verlängert
parent
be2cbbed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
interface/lib/app.inc.php
interface/lib/app.inc.php
+3
-3
No files found.
interface/lib/app.inc.php
View file @
efdd1a3f
...
...
@@ -78,16 +78,16 @@ class app {
$tmp
=
$this
->
ini_parser
->
parse_ini_string
(
stripslashes
(
$tmp
[
'config'
]));
if
(
!
isset
(
$tmp
[
'misc'
][
'session_allow_endless'
])
||
$tmp
[
'misc'
][
'session_allow_endless'
]
!=
'y'
)
{
$this
->
session
->
set_timeout
(
$sess_timeout
);
session_set_cookie_params
(
(
$sess_timeout
*
60
)
+
300
);
// make the cookie live 5 minutes longer
session_set_cookie_params
(
3600
*
24
*
365
);
// cookie timeout is never updated, so it must not be short
}
else
{
// we are doing login here, so we need to set the session data
$this
->
session
->
set_permanent
(
true
);
$this
->
session
->
set_timeout
(
365
*
24
*
3600
);
// one year
session_set_cookie_params
(
36
5
*
24
*
3600
);
// make the cookie live 5 minutes longer
session_set_cookie_params
(
36
00
*
24
*
365
);
// cookie timeout is never updated, so it must not be short
}
}
else
{
$this
->
session
->
set_timeout
(
$sess_timeout
);
session_set_cookie_params
(
(
$sess_timeout
*
60
)
+
300
);
// make the cookie live 5 minutes longer
session_set_cookie_params
(
3600
*
24
*
365
);
// cookie timeout is never updated, so it must not be short
}
}
else
{
session_set_cookie_params
(
0
);
// until browser is closed
...
...
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