Note: You are currently viewing documentation for Moodle 3.7. Up-to-date documentation for the latest stable version of Moodle may be available here: Cookie Sessions.

Cookie Sessions: Difference between revisions

From MoodleDocs
(New page: '''Troubleshooting''')
 
No edit summary
Line 1: Line 1:
'''Troubleshooting'''
'''Troubleshooting'''
Some users get the following error when trying to login to there moodle: <code>A server error that affects your login session was detected. Please login again or restart your browser</code>
or even: <code>Your session has timed out. Please login again</code>
'''Solution'''
* check and fix your permissions in moodledata/session -- set it to 0777
* check config.php, it should NOT has any spaces/new lines at the end of code. Repeat this on all moodle php files you lately changed, such as course/lib.php
* In admin > server > session handling > "Cookie Prefix" put something in the Cookie prefix field that is different for each of your moodle sites, and it should improve the issue with multiple sites on the same url.
* test your server's sessions by running session test on http://yourserver/moodle/lib/session-test.php
* check your phpinfo(); if it session handeling is configured correctly or not.
Auther: Amr Hourani a [dot] hourani [at] gmail [dont] com
[[Category:Developer]]
[[Category:Administrator]]
[[Category:Cookies]]

Revision as of 15:10, 5 November 2008

Troubleshooting

Some users get the following error when trying to login to there moodle: A server error that affects your login session was detected. Please login again or restart your browser or even: Your session has timed out. Please login again

Solution

  • check and fix your permissions in moodledata/session -- set it to 0777
  • check config.php, it should NOT has any spaces/new lines at the end of code. Repeat this on all moodle php files you lately changed, such as course/lib.php
  • In admin > server > session handling > "Cookie Prefix" put something in the Cookie prefix field that is different for each of your moodle sites, and it should improve the issue with multiple sites on the same url.
  • test your server's sessions by running session test on http://yourserver/moodle/lib/session-test.php
  • check your phpinfo(); if it session handeling is configured correctly or not.


Auther: Amr Hourani a [dot] hourani [at] gmail [dont] com