Moodle Site Root Logout

Moodle Site Root Logout

by Wade Colclough -
Number of replies: 6

Hi,

I've been testing and running Moodle for a little while now, however i've just noticed a strange issue with out live server which is running 3.6.1. Clicking the site logo in the top left (boost theme) or simply using the site URL (https://site.domain.com/moodle) will hit the site front page and log me out of all active sessions. If I launch any new windows or tabs using a different url (https://site.domain.com/moodle/my/) the login remains active. It just appears as though there is some logout action on the site front page.

I don't have this same behaviour in our local 3.5.1 which has the same theme and front page settings.

Any help is very appreciated!

Average of ratings: -
In reply to Wade Colclough

Re: Moodle Site Root Logout

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Switch on Debugging, reproduce the problem. Check your web server's error log.
In reply to Howard Miller

Re: Moodle Site Root Logout

by Wade Colclough -
I've already tried the above, no errors or debug information, it just seems as though the session has expired or log out function has been called.

What I have managed to spot is how this is recorded in the live logs, here I clicked the top left logo, landed on the front page (Event 2) , logged in (Event 3) and went to the dashboard (Event 4) .
Attachment Event Log.PNG
In reply to Wade Colclough

Re: Moodle Site Root Logout

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Ok - are you using a non-core theme? If you are, try again with Boost.

Do you have any other non-core plugins? Are they *definitely* up to date and compatible with your version of Moodle?
In reply to Howard Miller

Re: Moodle Site Root Logout

by Wade Colclough -
It is core boost.

I do have coupon installed, it is beta version following a fix i've been testing with them but is the same version that will be released today/tomorrow.
In reply to Wade Colclough

Re: Moodle Site Root Logout

by Wade Colclough -
I believe i've found the problem:
Live server address is: https://Livesite.domain.com/moodle
Local server address is:https://Localsite.domain.com/moodle/
My live site is missing a final "/" in the URL. If i miss this on my local URL it will correctly redirect and add the "/" and if i add this to my live server URL I am not logged out. Unfortunately this is the default URL of the site logo/site as a whole.

I don't manage the server, this is done by a colleague, does anyone know where this is set or how it can be modified?
In reply to Wade Colclough

Re: Moodle Site Root Logout

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
The "trailing slash" problem is usually the result of a badly written Alias or rewrite/redirect in the web server configuration.