Logging out of Joomla does not log the user out of Moodle

  • Joseph Cotten
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 7 months ago #1 by Joseph Cotten
I've noticed on our school site that logging out of Joomla does NOT log the user out of moodle. The problem is, if we have a married couple who shares a computer, if the husband logs out of joomla and the wife logs in, she will end up submitting things on her husbands moodle account, while being logged in on HER moodle account.

Now, some of our students watch videos for long periods in an embeded player, so they might not refresh or move around in the site for HOURS at a time. I set joomla to a 6 hour session time, and then I set moodle even longer (I added more time options to the php session file), but I don't think that's the issue. And in fact, if I knew for sure signing out of joomla would flush the session in Moodle, I'd just leave the session times the same or make moodle shorter because if they get a glitch I can just tell them to log out and back in and it'll fix it.

Any ideas on this? We really need it to ALWAYS log out moodle (no matter what the user) if someone logs out of joomla in the same browser.

thanks!

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

  • Joseph Cotten
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 7 months ago #2 by Joseph Cotten
I just tested it and logging out of moodle does NOT log me out of joomla either.

Everything checks out green and everything works except this one feature. I have no idea where to start looking to fix this.

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

More
13 years 7 months ago #3 by Antonio Durán
Hi.

Joomdle should log out the same user, but not another one.
ie: if I am logged as user1 in Joomla, and user2 in Moodle, single log out will not work.

Now, does it work for the same user? Try changing the value of "Redirectless Single Log out" in joomdle config in joomla.

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

  • Joseph Cotten
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 7 months ago #4 by Joseph Cotten
I'll check this on Monday, but NO, it was not logging out the single user. That was the problem. The next user on the same computer was still left logged in as the first one in Moodle.

My work around (since I hadn't heard from you)...it's a bit of a hack, but it makes me chuckle to see it in action:

#1 I use a joomla plugin called Quick Logout. Clicking it immediately logs the user out
#2 I can redirect the user to a page, but it must be in a menu (I can't simply redirect them to a url)
#3 I created a page and stick javascript on it that redirects the page to the Moodle logout page
#4 because I'm using the joomdle moodle template, there's nothing on the moodle logout page except the "are you sure you want to log out" along with the buttons.

So, the user clicks logout in Joomla, it logs them out and auto forwards them to the redirect page which quickly forwards them to the moodle log out page where they can click YES, they want to log out. Then they are taken to the Joomla front page )or the joomla login page, I can't remember).

As far as the student is concerned they are clicking Log out and then being asked if they are sure, when in reality, they are logging out of Joomla and then being asked if they want to be logged out of Moodle. It works perfectly so far :)

thanks!

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

More
13 years 7 months ago #5 by Chris
What if they say no they are not sure?

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

  • Joseph Cotten
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 7 months ago #6 by Joseph Cotten
Well, then they're on their own :) We'll warn them to make sure they ALWAYS log out if someone else plans to use their computer. Then it will be their own fault.

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

  • Joseph Cotten
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 7 months ago #7 by Joseph Cotten
The single logout is set to YES at the moment, but I think I'm going to keep my solution in place for now so that I know for sure they are always getting logged out. We'll just tell the students to always click YES, log me out.

thanks!

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