A
A
Alexander Ivanov2017-02-13 16:05:37
1C-Bitrix
Alexander Ivanov, 2017-02-13 16:05:37

How to set cookies for authorization on all sites with multi-site?

Haven't done something like this yet.
in technical support sent here: https: //dev.1c-bitrix.ru/learning/course/
?COURSE_I ... - one stupid example and that's all How do I determine which cookie to set on all sites if I use bitrix:system.auth.form for authorization? Should this parameter be displayed? : CMain::ShowSpreadCookieHTML() Let's say I display the cookie I need with what value should I replace this VISITOR_ID, what to get it, and where can I read about it?

global $APPLICATION;
$VISITOR_ID = $APPLICATION->get_cookie("VISITOR_ID");

From what I found (but I’m looking for it there and in general I’m doing it):
unset($_SESSION["SESS_AUTH"]);
            unset($_SESSION["SESS_OPERATIONS"]);
            unset($_SESSION["MODULE_PERMISSIONS"]);
            unset($_SESSION["SESS_PWD_HASH_TESTED"]);

Guys give me some advice!
Who did such a thing - Technology for transferring visitors between sites.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2017-02-16
@Sopwithcamel

What is needed in general? So that authorization from one site is preserved on others?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question