dayuloli
dayuloli

Reputation: 17021

Drupal in Moodle sharing session

I have a Moodle site, in one of the Moodle pages I have an iFrame which contains a Drupal application. I want the Drupal application to see whether the user is logged in on Moodle, and if so show extra content.

However, I cannot access the session data from Moodle (especially information on the User) to in Drupal.

I tried two things:

I've never used/touched Moodle and Drupal until today. Can anyone help me figure out how to check whether a user is logged in on Moodle, from an iframe running a Drupal application?

Upvotes: 0

Views: 336

Answers (1)

Anthony Leach
Anthony Leach

Reputation: 1993

A quick google gives the following moodle plugin that may be useful: https://moodle.org/mod/forum/discuss.php?d=208285

Looks like it allows single sign-on between the two, I've never used moodle before, but this may be a step in the right direction.

Upvotes: 0

Related Questions