Answer the question
In order to leave comments, you need to log in
Why does vk use a login redirect?
The initial request is made to login.vk.com, then, as I understand it, it is redirected to vk.com. So why is this being done?
Answer the question
In order to leave comments, you need to log in
Probably another layer of security. there they put cookies purely on the login.vk subdomain for a year + HttpOnly.
on the main domain, cookies are set on all subdomains (and without HttpOnly), which is less secure in the case of xss.
that is, reliable cookies are stored on this subdomain, which cannot be stolen through xss. and these cookies do not fly with all requests, and it will be more difficult to hijack someone else's session.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question