Configure Cookies
These instructions will allow you to configure cookies.
Prerequisite: Note these settings presume you have SSL configured to your domain.
With default cookie setup, you need to log in separately to LMS and Studio. Let’s see if we can make that better, and share a session between LMS and studio.
Set the following flags in lms.yml and studio.yml. They should be the same in both files.
Use the following command to access the lms file from the terminal:
sudo nano /edx/etc/lms.yml
sudo nano /edx/etc/studio.yml
Make the following changes in the files.
Update the following in the file:
SESSION_COOKIE_DOMAIN: '.learning.my-site.com' (this is just your base site URL)
SESSION_COOKIE_NAME: sessionid
SESSION_COOKIE_SECURE: true
CSRF_COOKIE_SECURE: true
CROSS_DOMAIN_CSRF_COOKIE_DOMAIN: .learning.my-site.com
CSRF_COOKIE_SECURE: true
BASE_COOKIE_DOMAIN: '.learning.my-site.com' (this is just your base site URL)
Note that some instructions say you must include a dot before your cookie names (e.g. .mysite.com). This might be true, but it also seems like the software may do this automatically for you if you forget.
Note these settings presume you have SSL configured.
Restart the edx service by issuing the following command:
sudo /edx/bin/supervisorctl restart all