K
K
kimqar2022021-08-20 12:01:06
1C-Bitrix
kimqar202, 2021-08-20 12:01:06

Bitrix, php, how to catch the end of the session?

You need to set a cookie at the end of the session

setcookie("emailUser", 'null', time()+60*60*24*30, "/");

How to catch the end of the session (for example, in Bitrix, the session is 24 minutes, after which the user is deauthorized. The standard Bitrix events of the OnBeforeUserLogout and OnAfterUserLogout types work only if the deauthorization occurs through LogOut (), and I need to catch the moment the session ends.)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maiker, 2021-08-30
@Maiker

So just don't catch it. php scripts work on requests. As long as the user does nothing, then nothing will be passed to the user.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question