简体   繁体   English

如何在Typo3多个子域中使用登录会话?

[英]How to use login sessions in Typo3 multiple subdomains?

I am using version 8 of TYPO3 and I ask your help to know if it is possible to use the login session of a domain in another subdomain, within the same installation? 我正在使用TYPO3的版本8,请问您的帮助以了解是否可以在同一安装中使用另一个子域中某个域的登录会话? For example, log in to www.example.com/login and use the session on a.example.com 例如,登录到www.example.com/login并在a.example.com上使用会话

Thanks. 谢谢。

You have to set the correct cookieDomain. 您必须设置正确的cookieDomain。
This example is for your suggested behaviour: 此示例是针对您的建议行为:

$GLOBALS['TYPO3_CONF_VARS']['FE']['cookieDomain'] = '.example.com';

You can set this with FE for frontend only, BE for backend only and SYS for the general behaviour (which will be overwritten by FE or BE ). 您可以将FE设置为仅用于前端,将BE设置为仅用于后端,将SYS为常规行为(将被FEBE覆盖)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM