Auto-login guests do not work everytime....

Auto-login guests do not work everytime....

by Niklas Frost -
Number of replies: 1

Any advice would be appreciated!

If a user go to a page on a course on a Moodle site that has Auto-login guests "approved" they can go to that page as an anonymous internet user - no problem. From any computer and browser.

But not always! Fore some users,  on some of their browsers, sometimes -  it do not work.

They are instead sent to our Shibboleth university login page.

Now. It do not reproduce for a long time - even if You use same computer, same browser clear cache, login, cookies and closes the browser. Next time You try it works fine. Via navigation, Paste the URL, click on a link from outlook - it works what ever You do.

But could still be a problem on another browser on the same computer.

It is very arbitrary and very disturbing when it occurs often. Any Advice?


Best regards, Niklas



Average of ratings: -
In reply to Niklas Frost

Re: Auto-login guests do not work everytime....

by Niklas Frost -
190919

More information: Moodle 3.5.2
I can also inform that Moodle do the following:
When it goes like it "shoud": User A use browser 1 to go to Moodle public content page "alfa" and gets the page without relaying to a login page. When that happens we can see that Moodle sets the attribut userid to 1 in the database table mdl_sessions

but if the error case:  User B with browser 1 goes to Moodle public content page "alfa" and tries to gets the same page - he or she will be redirected to our Shibboleth login page. When that occurs we see that Moodle Moodle sets the attribut userid to 0 in the database table mdl_sessions

If user B now clicks on more time to the url to the open content he will get the page and Moodle update the attribut userid to 1 in the database table mdl_sessions.

Anyone know were the code/logic is or is described that do the "choice" of insert 0 or 1 in the code?
Is there any Writings on how is the session handling process set up?

Best regards, Niklas