[Solved] Logging out of Moodle doesn't log out of Joomla

6 years 5 days ago 6 years 4 days ago by Chris.
michaelhermary
Posts: 56
More
Topic Author
[Solved] Logging out of Moodle doesn't log out of Joomla #1
Joomla 2.5, Virtuemart 3, Moodle 1.9.

Single sign on works - when I login to Joomla, I'm logged into Moodle. And I don't allow login directly to Moodle (Moodle redirects to Joomla when you're not logged in), so that's not an issue.

But single sign off doesn't work entirely - when I logout of Joomla, I am logged out of Moodle, but when I logout of Moodle, I'm not logged out of Joomla.

I've tried both file_get_contents and cURL.

Any ideas?

Thanks,
Phil

Please Log in or Create an account to join the conversation.

6 years 5 days ago
Antonio Durán
Posts: 7252
More
[Solved] Logging out of Moodle doesn't log out of Joomla #2
It's been very long since I worked in a Moodle 1.9 site, so I cannot tell you what may be happening.
I would need access to do debugging.

Please Log in or Create an account to join the conversation.

6 years 5 days ago
michaelhermary
Posts: 56
More
Topic Author
[Solved] Logging out of Moodle doesn't log out of Joomla #3
I think I've figured it out thanks. I think I just need to change all existing moodle users to have Joomdle as their authentication method. I hope I can do a simple mysql update in phpmyadmin to accomplish that.

I'm not sure if that may cause any other problems, such as with profile syncing, but I'll play with it and let you know.

Thanks,
Phil

Please Log in or Create an account to join the conversation.

6 years 4 days ago
Antonio Durán
Posts: 7252
More
[Solved] Logging out of Moodle doesn't log out of Joomla #4
Are those users already in joomla and moodle with the same username? If so, sql update should be fine.

Please Log in or Create an account to join the conversation.

6 years 4 days ago
michaelhermary
Posts: 56
More
Topic Author
[Solved] Logging out of Moodle doesn't log out of Joomla #5
Okay, if anyone needs the update script, it's:
update mdl_user
set `auth`=
replace(`auth`,
        'db',
        'joomdle')

Please Log in or Create an account to join the conversation.

6 years 4 days ago
michaelhermary
Posts: 56
More
Topic Author
[Solved] Logging out of Moodle doesn't log out of Joomla #6
Ooops, the functionality already exists in Joomdle in the Users Tab by clicking 'MIgrate Users To Joomdle'. My mistake.

Please Log in or Create an account to join the conversation.

6 years 4 days ago
Antonio Durán
Posts: 7252
More
[Solved] Logging out of Moodle doesn't log out of Joomla #7
Yes, I realize now that I had not told you that, because I was thinking that you had many users. For many users, it's quite a pain to do it via web interface, so an sql update seemed like a good idea.

Please Log in or Create an account to join the conversation.