Is it possible to set a cookie without a domain?
This will mean all domains will have access to it.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, that is not possible. If a cookie doesn’t declare a domain, the browser will assume the domain of the object requested.
What you’re asking for is generally considered a security, or at least privacy, risk. It’s possible to configure browsers to allow access to cookies from other than the domain that they were created, but browsers aren’t commonly configured that way.