L
L
lumpenkoder2021-07-03 07:44:06
In contact with
lumpenkoder, 2021-07-03 07:44:06

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

1 answer(s)
L
lumpenkoder, 2021-07-03
@lumpencoder

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 question

Ask a Question

731 491 924 answers to any question