Skip to content

Commit

Permalink
Merge pull request #110 from edly-io/rehan/fix-edly-cookie-not-deleting
Browse files Browse the repository at this point in the history
Adds domain in delete_cookies method
  • Loading branch information
rehan99000 authored Jun 18, 2020
2 parents 5fe63d2 + dc162ed commit 1c93d6e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion openedx/features/edly/cookies.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ def delete_logged_in_edly_cookies(response):
Returns:
HttpResponse
"""
response.delete_cookie(settings.EDLY_USER_INFO_COOKIE_NAME)
response.delete_cookie(
settings.EDLY_USER_INFO_COOKIE_NAME,
path='/',
domain=settings.SESSION_COOKIE_DOMAIN
)

return response

Expand Down

0 comments on commit 1c93d6e

Please sign in to comment.