askvity

How to Enable Moodle Session Cookie in Google Chrome?

Published in Moodle Cookies 3 mins read

The provided instructions address managing pop-ups and redirects, which is indirectly related to cookies but not the direct method to enable or manage session cookies for Moodle in Chrome. Enabling Moodle session cookies involves ensuring that Chrome allows cookies generally and that Moodle is configured correctly to use them. Here's a breakdown of how to accomplish this:

1. Verify Chrome's Cookie Settings:

Ensure Chrome allows cookies in general:

  1. Open Google Chrome.
  2. Click the three vertical dots (More) in the top right corner.
  3. Select Settings.
  4. Go to Privacy and security -> Cookies and other site data.
  5. Make sure either "Allow all cookies" or "Block third-party cookies in Incognito" is selected. If "Block all cookies" is selected, Moodle (and many other websites) will not function correctly. If you choose to block third-party cookies, Moodle as a first-party site should still function correctly.

2. Add Moodle to Allowed Sites (If Necessary):

If you choose to block third-party cookies, you may need to explicitly allow Moodle:

  1. In Privacy and security -> Cookies and other site data, find the section Sites that can always use cookies.
  2. Click Add.
  3. Enter the URL of your Moodle site (e.g., https://yourmoodlesite.com) and click Add.

3. Check Moodle's Cookie Settings:

While this question primarily focuses on Chrome, it's vital to verify Moodle's configuration:

  1. Log in to your Moodle site as an administrator.
  2. Go to Site administration > Server > Session handling.
  3. Ensure "Use persistent cookies" is set to "Yes" or is appropriately configured for your needs. (Note: The specific wording of this setting might vary slightly depending on your Moodle version.)
  4. Verify that the "Cookie domain" and "Cookie path" settings are correct. In most cases, leaving these blank will be appropriate, allowing Moodle to automatically configure these.

4. Troubleshooting:

  • Clear Chrome's Cache and Cookies: Sometimes, existing cached data can interfere. Clear Chrome's cache and cookies for your Moodle site. Go to Settings -> Privacy and security -> Clear browsing data, select "Cookies and other site data" and "Cached images and files", and choose "All time" as the time range. Then, click "Clear data".
  • Browser Extensions: Some browser extensions can interfere with cookies. Try disabling your extensions one by one to see if any of them are causing the issue.
  • Moodle Configuration: Double-check your Moodle site's configuration for session handling, as incorrect settings there can prevent cookies from being set correctly.

By following these steps, you can effectively enable and manage Moodle session cookies in Google Chrome, ensuring smooth functionality for your Moodle site. Remember to address both Chrome's settings and Moodle's configuration to ensure everything works correctly.

Related Articles