We have a student portal, that uses a customised SSO login script to access their learning materials on Moodle.
RIght now we are facing that course overview & courses enrolled doesnt not update immediately upon login via SSO login. However if the same user were to login direct, it loads find.
We are looking into the SSO login scrip to see what we can improve.
Basically there are 2 functions being called.
We are able to login to moodle with 2 of these functions but happening that moodle didn’t recognise the users at the first place once redirected to the moodle .
It takes 30seconds to load the courses based on user's enrollment, otherwise it treats the site page as a 'guest' and loads all the courses list.
what does moodle do with this variable in the session ‘justloggedin’ and possible is it possible that moodle rely on cronjob or any process behind to recognise the users based on this variable?