D
D
DaniilKhanin2016-08-19 18:00:06
In contact with
DaniilKhanin, 2016-08-19 18:00:06

How to properly work with the auth.logout method?

I hang a handler on the authorization and deauthorization event
as:

VK.Observer.subscribe("auth.login", function f()
{
alert ("Thank you for your Login.");
});

VK.Observer.subscribe("auth.logout", function f()
{
alert ("Thank you for your Exit");
});

The login event fires when you successfully log in for the FIRST time, then I press the exit button, the logout event does not fire !!, I log in again and unfortunately the handler for the login event does not work ...
Please help solve the problem, otherwise it is not clear whether the user registered on the site or No...

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