R0.24 No Longer Supported

[Solved] Login Redirection Issue

  • William
  • Topic Author
  • Offline
  • New Member
  • New Member
More
15 years 10 months ago - 15 years 9 months ago #1 by William
[Solved] Login Redirection Issue was created by William
I am currently having an issue with joomdle where every time I log into joomla I am redirected to moodle. I've looked around and I can't seem to find any option that would cause that to happen. I have both joomla and moodle authenticating to active directory through their respective plugins. Joomla is 1.5.18 and Moodle is 1.9.7. Both sites sit on the same server running ubuntu 10.4 with Apache 2.2 from xampp.

Thanks in advance for any help you can give.
Last edit: 15 years 9 months ago by Antonio Durán.
The topic has been locked.
More
15 years 9 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Re: Login Redirection Issue
Hi.

I don't know what can be happening, as I only saw this behaviour with separate domains.

Which url you are redirected to? (domain not needed)
The topic has been locked.
  • William
  • Topic Author
  • Offline
  • New Member
  • New Member
More
15 years 9 months ago #3 by William
Replied by William on topic Re:Login Redirection Issue
I am redirected from Joomla site to my Moodle site when I log in. There are on the same domain so they are both joomla.domainone.com and moodle.domainone.com.
The topic has been locked.
More
15 years 9 months ago #4 by Howard
Replied by Howard on topic Re:Login Redirection Issue
Sorry but the problem you are experiencing is because you have setup 2 subdomains. The issue you are experiencing is exactlty what will be expected (hopefully in the future a work around will be found but unlikely due to cookie sessions.
If you get joomla and moodle on the same domain ie www.domainone.com then all should be well.

Have a look at another set of posts on this site referring to this problem

"404 'Not Found Error' after login"
The topic has been locked.
More
15 years 9 months ago #5 by Antonio Durán
Replied by Antonio Durán on topic Re:Login Redirection Issue
:)

They are on the same domain, on different subdomains :)

That is why it is not wortking. I am not at my place now, but I will send you the patch when I can.
The topic has been locked.
More
15 years 9 months ago #6 by Antonio Durán
Replied by Antonio Durán on topic Re:Login Redirection Issue
whitehm: I have a patch now for the SSO redirection issue, but not for the single logout one.
The topic has been locked.
More
15 years 9 months ago #7 by Howard
Replied by Howard on topic Re:Login Redirection Issue
okay I'll give it a whirl :>)
The topic has been locked.
More
15 years 9 months ago #8 by Howard
Replied by Howard on topic Re:Login Redirection Issue
Actually I misread the issue a little. (watching spain/portugal)

I am running my live site across subdomains at the moment and if I'm not mistaken the patches we did earlier ie to the land.php did help with dealing with sso redirection. i do have issues with sign out though.
What seems to happen I am not using a wrapper at the moment but getting moodle to open in a new window.
When logging out from moodle it refreshes and logs out to joomla in the same window.
If I go back to the original joomla window and refresh it will logout as well.
So this patch I may have done already unless its one you have just finished??
The topic has been locked.
More
15 years 9 months ago - 15 years 9 months ago #9 by Antonio Durán
Replied by Antonio Durán on topic Re:Login Redirection Issue
whitehm: yes, as you say you already applied this patch.

wcook: attached is new land.php file to put in moodle/auth/joomdle. Rename to .php.

It should fix the login redirection issue, but still single log out from joomla to moodle will not work across different subdomains.

File Attachment:

File Name: land.txt
File Size:4.23 KB
Last edit: 15 years 9 months ago by Antonio Durán.
The topic has been locked.
  • William
  • Topic Author
  • Offline
  • New Member
  • New Member
More
15 years 9 months ago #10 by William
Replied by William on topic Re:Login Redirection Issue
Thanks for the help, antonio. Fixed my problem nicely.
The topic has been locked.