Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question