我正在尝试使用Craft CMS创建一个多环境网站,每个环境都是不同的语言。有没有办法让我的Craft Users在点击其他语言和更改环境时保持登录状态。我的两个环境在craft / config / general.php中看起来像那样:
'frenchSite' => array(
'siteName' => 'French Site',
'devMode' => true,
'siteUrl' => array(
'en' => 'http://website-en.com',
'fr' => 'http://website-fr.com',
),
'environmentVariables' => array(
'basePath' => '/home/vagrant/Projects/WebSite/dev/public/',
'baseUrl' => 'http://website-fr.com/',
),
'googleAnalyticCode' => '',
'mailchimp' => '',
'StripeID' => '',
'GoogleMap' => '',
),
'EnglishSite' => array(
'siteName' => 'English Site',
'devMode' => true,
//'defaultCookieDomain' => 'website-fr.com',
'siteUrl' => array(
'en' => 'http://website-en.com',
'fr' => 'http://website-fr.com',
),
'environmentVariables' => array(
'basePath' => '/home/vagrant/Projects/WebSite/dev/public/',
'baseUrl' => 'http://website-en.com/',
),
'googleAnalyticCode' => '',
'mailchimp' => '',
'StripeID' => '',
'GoogleMap' => '',
),