Craft CMS使工艺用户在多个环境之间登录

时间:2017-07-11 18:34:46

标签: php content-management-system craftcms

我正在尝试使用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' => '',
),

0 个答案:

没有答案