How To / General

Session sync

  • Web Buster UK Ltd
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 11 months ago #1 by Web Buster UK Ltd
Session sync was created by Web Buster UK Ltd
Hi, we are having issues with sessions syncing between Joomla and Moodle while using Joomdle.

We have followed all the steps here ( www.joomdle.com/wiki/Session_sync ) and enabled Joomdlesession in Joomla.

When the user timed out while in Joomla, the moodle session remains (accessible by going to www.homepage.com/moodle ).

When the user timed out while in moodle, the Joomla session remains (trying to access moodle shows the login page, but when redirecting to Joomla the user is still logged in).

Is there any way to solve this or are we not doing it right? Thanks antonio.

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

  • Web Buster UK Ltd
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 11 months ago #2 by Web Buster UK Ltd
Replied by Web Buster UK Ltd on topic Session sync
Think we've found a solution to the issue. We've added the moodle session code onto every page, instead of the javascript folder and config.php.

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

  • Web Buster UK Ltd
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 11 months ago - 4 years 11 months ago #3 by Web Buster UK Ltd
Replied by Web Buster UK Ltd on topic Session sync
On a related issue, when a user session times out in Joomla, it doesn't refresh the screen or redirect the user. When a user tries to click on a link to lead them to the moodle side, it ended up with duplicate webpage within the joomdle iframe.

Edit: How do we set access to the joomdle component? Ie if guests try to access it, Joomla should redirect them to the login page. Currently if guests go to " www.homepage.com/component/joomdle/wrapper ..." Joomla does not redirect them away.

Also if they try to access www.homepage.com/component/joomdle they get this single line?

/component/easysocial/?view=dashboard&Itemid=1770

We don't have Joomdle Easysocial profile plugin installed.
Last edit: 4 years 11 months ago by Web Buster UK Ltd.

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

More
4 years 11 months ago #4 by Antonio Durán
Replied by Antonio Durán on topic Session sync
Hi.

Sorry for the delay, I wanted to do some testing before getting back to you, but I could not do it yet.

> We've added the moodle session code onto every page, instead of the javascript folder and config.php.

Ok, I will test this as soon as I can, to see if something has chaged. I don't think most people uses this, so maybe it is not working now and nobody noticed until you did.


> On a related issue, when a user session times out in Joomla, it doesn't refresh the screen or redirect the user. When a user tries to click on a link to lead them to the moodle side, it ended up with duplicate webpage within the joomdle iframe.

I think you can solve this by setting the wrapper to Registered access. You will then need to configure that wrapper menu item in Joomdle config in Joomla, as "Default Itemid" in Links behaviour section.


> Also if they try to access www.homepage.com/component/joomdle k they get this single line?

I think this is caused by a bad package we released for some hours. Please download and install current 1.3 package (even if you already have 1.3. In this case, you just need to re-install in Joomla).

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