Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
8a876a5e
Commit
8a876a5e
authored
9 years ago
by
Jesse Zoldak
Browse files
Options
Downloads
Patches
Plain Diff
Add the ability to change the SESSION_SAVE_EVERY_REQUEST django setting
parent
ac0d9264
Loading
Loading
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
cms/envs/aws.py
+1
-0
1 addition, 0 deletions
cms/envs/aws.py
cms/envs/common.py
+1
-0
1 addition, 0 deletions
cms/envs/common.py
lms/envs/aws.py
+3
-1
3 additions, 1 deletion
lms/envs/aws.py
lms/envs/common.py
+1
-0
1 addition, 0 deletions
lms/envs/common.py
with
6 additions
and
1 deletion
cms/envs/aws.py
+
1
−
0
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
...
...
This diff is collapsed.
Click to expand it.
cms/envs/common.py
+
1
−
0
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
...
...
This diff is collapsed.
Click to expand it.
lms/envs/aws.py
+
3
−
1
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
...
...
This diff is collapsed.
Click to expand it.
lms/envs/common.py
+
1
−
0
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
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment