Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx
edx-platform
Commits
8a876a5e
Commit
8a876a5e
authored
Sep 16, 2015
by
Jesse Zoldak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the ability to change the SESSION_SAVE_EVERY_REQUEST django setting
parent
ac0d9264
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
1 deletions
+6
-1
cms/envs/aws.py
+1
-0
cms/envs/common.py
+1
-0
lms/envs/aws.py
+3
-1
lms/envs/common.py
+1
-0
No files found.
cms/envs/aws.py
View file @
8a876a5e
...
...
@@ -145,6 +145,7 @@ SESSION_COOKIE_DOMAIN = ENV_TOKENS.get('SESSION_COOKIE_DOMAIN')
SESSION_COOKIE_HTTPONLY
=
ENV_TOKENS
.
get
(
'SESSION_COOKIE_HTTPONLY'
,
True
)
SESSION_ENGINE
=
ENV_TOKENS
.
get
(
'SESSION_ENGINE'
,
SESSION_ENGINE
)
SESSION_COOKIE_SECURE
=
ENV_TOKENS
.
get
(
'SESSION_COOKIE_SECURE'
,
SESSION_COOKIE_SECURE
)
SESSION_SAVE_EVERY_REQUEST
=
ENV_TOKENS
.
get
(
'SESSION_SAVE_EVERY_REQUEST'
,
SESSION_SAVE_EVERY_REQUEST
)
# allow for environments to specify what cookie name our login subsystem should use
# this is to fix a bug regarding simultaneous logins between edx.org and edge.edx.org which can
...
...
cms/envs/common.py
View file @
8a876a5e
...
...
@@ -390,6 +390,7 @@ MODULESTORE = {
DEBUG
=
False
TEMPLATE_DEBUG
=
False
SESSION_COOKIE_SECURE
=
False
SESSION_SAVE_EVERY_REQUEST
=
False
# Site info
SITE_ID
=
1
...
...
lms/envs/aws.py
View file @
8a876a5e
...
...
@@ -157,8 +157,10 @@ HTTPS = ENV_TOKENS.get('HTTPS', HTTPS)
SESSION_ENGINE
=
ENV_TOKENS
.
get
(
'SESSION_ENGINE'
,
SESSION_ENGINE
)
SESSION_COOKIE_DOMAIN
=
ENV_TOKENS
.
get
(
'SESSION_COOKIE_DOMAIN'
)
SESSION_COOKIE_HTTPONLY
=
ENV_TOKENS
.
get
(
'SESSION_COOKIE_HTTPONLY'
,
True
)
REGISTRATION_EXTRA_FIELDS
=
ENV_TOKENS
.
get
(
'REGISTRATION_EXTRA_FIELDS'
,
REGISTRATION_EXTRA_FIELDS
)
SESSION_COOKIE_SECURE
=
ENV_TOKENS
.
get
(
'SESSION_COOKIE_SECURE'
,
SESSION_COOKIE_SECURE
)
SESSION_SAVE_EVERY_REQUEST
=
ENV_TOKENS
.
get
(
'SESSION_SAVE_EVERY_REQUEST'
,
SESSION_SAVE_EVERY_REQUEST
)
REGISTRATION_EXTRA_FIELDS
=
ENV_TOKENS
.
get
(
'REGISTRATION_EXTRA_FIELDS'
,
REGISTRATION_EXTRA_FIELDS
)
# Set the names of cookies shared with the marketing site
# These have the same cookie domain as the session, which in production
...
...
lms/envs/common.py
View file @
8a876a5e
...
...
@@ -801,6 +801,7 @@ DEBUG = False
TEMPLATE_DEBUG
=
False
USE_TZ
=
True
SESSION_COOKIE_SECURE
=
False
SESSION_SAVE_EVERY_REQUEST
=
False
# CMS base
CMS_BASE
=
'localhost:8001'
...
...
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