Cookie prefixes for Moodles hosted in the same domain

Cookie prefixes for Moodles hosted in the same domain

د Thomas Hanley لخوا -
د ځوابونو شمیر: 4

Hi,

I am very new to Moodle and Moodle networking so forgive me if this is a very basic question!

I am trying to troubleshoot an issue with a Moodle network not working. I am following the steps on the Moodle Network documentation for setting up a Peer to Peer Network. Step 1.2 states:

If MoodleA and MoodleB are hosted in the same domain, ensure they have a different cookie prefix.

There are 6 Moodle instances all on the same server. The domain name of the most developed Moodle is:

http://www.rrsa.org.uk/

The other Moodle instances are:

http://dorset.rrsa.org.uk/
http://hampshire.rrsa.org.uk
http://rochdale.rrsa.org.uk
http://durham.rrsa.org.uk
http://bracknell.rrsa.org.uk

So I guess this means that these five Moodles are sub-domains. I have two questions:

1) If the above 5 Moodles are sub-domains does this still mean that all the Moodles count as being hosted in the same domain and therefore I must setup the different cookie prefixes? (currently the cookie prefixes have not been setup).

2) Will all 6 Moodle instances need different cookie prefixes?

A simple yes or no response would be helfpul : )

Many thanks

~thomas

د درجې بندۍ اوسط:  -
In reply to Thomas Hanley

Re: Cookie prefixes for Moodles hosted in the same domain

د Heather P لخوا -
Hi
we have a similar scenario, multiple sub domains on the same server.
If you go to moodle admin, server, session handling and look at the cookies prefix section it says:
This setting customises the name of the cookie used for Moodle sessions. This is optional, and only useful to avoid cookies being confused when there is more than one copy of Moodle running within the same web site.

We interpreted this to mean that sub domains were not in the same web site - well they aren't not really and thus did not need to fiddle with cookie prefixes. I was going with this as over riding the statement in the Moodle Networking documentation about being in the same domain. We are in the same domain, but different subdomains.

I can't however tell you if this is true that you don't need to fiddle with cookies because I can't get a public key to generate yet. Having an issue with knowing what to make my sample openssl.cnf say in order to get the key. I'm on Windows 2003 and it isn't playing fair. If I get it to work in the near future I'll repost with a more definitive answer.
Regards

In reply to Heather P

Re: Cookie prefixes for Moodles hosted in the same domain

د Thomas Hanley لخوا -

Hi Heather,

Many thanks for your helpful reply. It would be helpful to new users such as myself if the interface language matched the Moodle documentation. Possibly it is my ignorance as well as the slightly ambiguous language though! I was thinking you could interpret a sub domain as being a subset or part of a domain. Maybe it is clearer to use the word 'website'.

Anyway that helps narrow down what may be causing the current Moodle Networking problems I am attempting to address.

My next step is to upgrade all the Moodle instances from 1.8 to 1.92 weekly build and then to step through the process of networking again as I was not the person who first tried to set up the Moodle Network.

Good luck with your public key issue (way beyond my current level of knowledge!!!)

Thanks again

~thomas

In reply to Thomas Hanley

Re: Cookie prefixes for Moodles hosted in the same domain

د Heather P لخوا -
Hi
for info. I have two Moodles on the same server in different sub domains. I've done nothing with the cookie prefixes, left them as defaults.
I've set up the network and they do talk to each other so far so good. We haven't done heavy or in depth testing, but usually if it isn't going to work it does it straight away.
I'll see if I can get it to talk to some more now.
In reply to Heather P

Re: Cookie prefixes for Moodles hosted in the same domain

د Thomas Hanley لخوا -

Thanks again, this is useful information to know. I am unable to proceed further as I am dependent on the hosting company to update the Moodle instances on the server. Once this occurs I will attempt to network the Moodles and will post any useful info / help on here in the context of someone who is new to Moodle and not experienced with server side issues.