Answer the question
In order to leave comments, you need to log in
How can I get the id of the current user on the browser side?
Now I'm busy implementing my local account switcher for easier use of VKontakte, so I'm interested in identifying the current user - does anyone know how to get a valid ID to use it as a key for cookies?
Answer the question
In order to leave comments, you need to log in
while waiting for an answer, I decided to rummage through global objects and found the vk variable, which contains the id field, which in turn stores the user's id
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question