I have Multi-Site Manger( MSM ) installed for a multi-language site
Default Site: English www.mysite.com Alternate Site: Spanish www.mysite.com/sp
The user is promted to select a language once they enter. This sets a cookie for their language preference, and re-directs them to the appropriate site.
I’m having issues changing the value of the cookie after you have selected a language. The value just isn’t getting passed between sites. i.e. The user is redirected, but the cookies isn’t being set.
The path I’m getting seems to be site specific. i.e. two cookies with two different paths
Note* Both sites access the same javascript file in the root/js/ directory.
Is this a setting in EE? Can I set the path using javascript for both sites?
I’m using Build: 20100810
I set the cookie using Javascript
function setCookie(c_name,value,exdays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate() + exdays);
var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
[removed]=c_name + "=" + c_value;
}Hi, Paw Paw -
Since this is a custom solution, I’m going to move this to Development & Programming for assistance. You might also consider looking at Devot-ee’s language options as an alternative approach.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.