M
M
Mikhail Teslya2021-01-16 12:45:48
1C-Bitrix
Mikhail Teslya, 2021-01-16 12:45:48

Bitrix why get parameter logout=yes does not log out?

href="
<?=$APPLICATION->GetCurPageParam("logout=yes", array(
"login",
"logout",
"register",
"forgot_password",
"change_password"));?>"><?=GetMessage ("AUTH_LOGOUT_BUTTON")?>


This code should log out the logged in user, but when the link is clicked, the get parameter is added and the user remains logged in

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
prgrant, 2021-01-16
@Sangfroid

I have the same nonsense, it seems to have arrived after the kernel update.
I solved it by adding the session identifier to the get-parameter of the link: bitrix_sessid_get()

<?=$APPLICATION->GetCurPageParam("logout=yes&".bitrix_sessid_get(), array(
      "login",
      "logout",
      "register",
      "forgot_password",
      "change_password"));?>"><?=GetMessage("AUTH_LOGOUT_BUTTON")?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question