Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
3be51d3e
Unverified
Commit
3be51d3e
authored
Jul 31, 2020
by
Scott
Committed by
GitHub
Jul 31, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #830 from gturri/dev
Increase security by setting the httpOnly flag to session cookie
parents
1af307eb
da1891b1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
+1
-0
users.php
qa-include/app/users.php
+1
-0
No files found.
qa-include/app/users.php
View file @
3be51d3e
...
...
@@ -157,6 +157,7 @@ if (QA_FINAL_EXTERNAL_USERS) {
@
ini_set
(
'session.gc_maxlifetime'
,
86400
);
// worth a try, but won't help in shared hosting environment
@
ini_set
(
'session.use_trans_sid'
,
false
);
// sessions need cookies to work, since we redirect after login
@
ini_set
(
'session.cookie_domain'
,
QA_COOKIE_DOMAIN
);
@
ini_set
(
'session.cookie_httponly'
,
true
);
if
(
!
isset
(
$_SESSION
))
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