R0.24 No Longer Supported

404 'Not Found Error' after login

More
15 years 10 months ago #31 by Antonio Durán
Replied by Antonio Durán on topic Re: 404 'Not Found Error' after login
Hi again.

I did a quick search and I found something thet may help.
In Moodle admin menu, Server->Session Handling.
Set Cookie domain to: .mywebsite.co.uk (notice the dot before)

You may need to restart your browser after that.

I think that should give joomla access to moodle cookies, but I don't have a testing enviroment at hand right now.
The topic has been locked.
More
15 years 10 months ago #32 by Howard
Replied by Howard on topic Re: 404 'Not Found Error' after login
Hi Thanks for the input.

No need for apologies - I'm just gratful that someone has finally taken the initiative to doing this type of extension so that courses can be paid for via a shopping cart...

My only reason for keeping Moodle and joomla on subdomains is being cautious, if anything should happen to the site ie hackers etc.. The Joomla site I'm not so worried about but the Moodle site I am ....the wife would shoot me :>)

I think I have read somewhere about Moodle getting sessions from another site unless I imagined it I'll have a look around.
The topic has been locked.
More
15 years 10 months ago #33 by Howard
Replied by Howard on topic Re: 404 'Not Found Error' after login
Thanks for the info.. Hmm thats where I did spot it before :>).

Big bold warning notice though I think before i try it I''l need to know how to undo it if it goes belly-up.

???
The topic has been locked.
More
15 years 10 months ago #34 by Antonio Durán
Replied by Antonio Durán on topic Re: 404 'Not Found Error' after login
I think it is easy to go back if it goes wrong: just a matter of entering the DB and removing the option value (put it back to blank).

I checked and the option is called sessioncookiedomain, in mdl_config table.
The topic has been locked.
More
15 years 10 months ago #35 by Howard
Replied by Howard on topic Re: 404 'Not Found Error' after login
Hello tried that option but it broke :<)
recovered okay no probs as you said.
I think I put the correct info in should it have been the domain of the joomla site?
The topic has been locked.
More
15 years 10 months ago #36 by Antonio Durán
Replied by Antonio Durán on topic Re: 404 'Not Found Error' after login
No, it should be: .domain.com

meaning the toplevel domain, assuming you have:
joomla.domain.com
moodle.domain.com

I guess you put .joomla.domain.com?
The topic has been locked.
More
15 years 10 months ago #37 by Howard
Replied by Howard on topic Re: 404 'Not Found Error' after login
Thanks tried it and it did not break. :>)

I needed a reason to install phpmyadmin on the site anyway :>)

However the logout SSO still doesn't work.

I guess this option is going to be a no. Never mind most users usually close the window rather than logout properly.

Logging in was my main issue and that works nice and cleanly thankyou.

As you now know that I am using this across domains - if you want anything tested let me know always willing.

I'm not working at the moment been laid off and therefore got some time available hence why Ive been able to spend time trying to sort this out.

I will perhaps later move Joomla and moodle to the same domain and let you know how that is.

Thanks for all your input.
The topic has been locked.
More
15 years 10 months ago #38 by Howard
Replied by Howard on topic Re: 404 'Not Found Error' after login
Hi again

Some updates you might be interested in..

I setup another test site installed Joomla and Moodle on the same domain. No problem with SSO. Sign on and Sign out okay.

However, did find that when I used the virtuemart Login module I got a token error. It did login okay though when a page refresh was done. The Joomla login module I have no problems with.

When I used the your standard install package for r024 I still got a memory issue, no problems experiened with the manual package you did for me.

Many thanks again for producing Joomdle.
The topic has been locked.
More
15 years 10 months ago #39 by Antonio Durán
Replied by Antonio Durán on topic Re: 404 'Not Found Error' after login
Thanks very much for the followup.

I will look into the Virtuemart login issue as soon as I can (a little busy this week) and report back when I know more. Thanks for the hint.

Antonio
The topic has been locked.
More
15 years 9 months ago #40 by Howard
Replied by Howard on topic Re: 404 'Not Found Error' after login
I have found some info on the Moodle site regarding issues with logins and using third party login.

docs.moodle.org/en/Latest_release_notes

Special notes
If you are using an unusual authentication mechanism then you may experience problems with sessions, and be unable to log in. If this happens to you, add the following to your config.php to make login work:

$CFG->regenloginsession = false;


Well I have implemeted by putting back the standard land.php file we altered and then added that line to the moodle config.php.

Seems to have done the trick for logging in to moodle via joomdle alas doesn't help with logging out though but didnt expect that. Havn't fully tested it but it seems to be okay.
The topic has been locked.