Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
366b5226
Commit
366b5226
authored
8 years ago
by
PaulWattenberger
Browse files
Options
Downloads
Patches
Plain Diff
ECOM-5059 Fix domain Sailthru logon cookie dropped in to
parent
92f3c7ee
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/djangoapps/email_marketing/signals.py
+4
-1
4 additions, 1 deletion
lms/djangoapps/email_marketing/signals.py
with
4 additions
and
1 deletion
lms/djangoapps/email_marketing/signals.py
+
4
−
1
View file @
366b5226
...
...
@@ -7,6 +7,7 @@ import crum
from
django.dispatch
import
receiver
from
django.core.urlresolvers
import
reverse
from
django.conf
import
settings
from
student.models
import
ENROLL_STATUS_CHANGE
from
student.cookies
import
CREATE_LOGON_COOKIE
...
...
@@ -116,7 +117,9 @@ def add_email_marketing_cookies(sender, response=None, user=None,
response
.
set_cookie
(
'
sailthru_hid
'
,
cookie
,
max_age
=
365
*
24
*
60
*
60
# set for 1 year
max_age
=
365
*
24
*
60
*
60
,
# set for 1 year
domain
=
settings
.
SESSION_COOKIE_DOMAIN
,
path
=
'
/
'
,
)
else
:
log
.
error
(
"
No cookie returned attempting to obtain cookie from Sailthru for %s
"
,
user
.
email
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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