B
B
BatorOV2016-02-09 22:08:19
In contact with
BatorOV, 2016-02-09 22:08:19

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

1 answer(s)
Y
Yuri, 2016-02-09
@BatorOV

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 question

Ask a Question

731 491 924 answers to any question