Answer the question
In order to leave comments, you need to log in
Is it possible to pass a cookie through a link?
Through the plugin Jquery Cookie Plugin, a simple cookie is added to the site, for 90 days.
But the site also has subdomains.
Is it possible to transfer a cookie to a subdomain via a link like site.ru/?cookie=select (for example).
Or vice versa, if the first visit was to a subdomain, transfer it back. During the transition.
Answer the question
In order to leave comments, you need to log in
Can. See if such a parameter is passed and set a cookie. Technically yes.
It is possible if there is a script on the other side that sets the cookie according to the passed parameter. The only thing is that it is desirable to somehow encrypt or sign this parameter so that the attacker cannot set arbitrary cookies for arbitrary users through attacks like CSRF.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question