S
S
SpeakeazyYT22018-07-07 11:14:20
1C-Bitrix
SpeakeazyYT2, 2018-07-07 11:14:20

Why, when authorizing on the Bitrix website, the site header displays the data of another user, while in the link ?login=yes?

Hello. The problem is like this. When a person logs in in the authorization form, when he logs in, he is redirected to the PHP page and the link at the end is ?login=yes.
In the header of the site I have information about the user (his name and picture). The problem is that when you log in, the data of ANOTHER user is shown in the header, but if you refresh this page, the data will be shown by the current user. What can be wrong?
In the header of the site is the code below:

<? if ($USER->IsAuthorized() == false) {?>
  //контент, если человек не авторизован.
<? } else { ?>
  //контент, если человек авторизован.
<? } ?>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question