We have cookies added by the current website say www.example.com. Cookie domain of those cookies is one of the following when viewed in browser,
- www.example.com (are also marked as HostOnly)
- .example.com
- .www.example.com
Now, we are creating a sub-domain say test.example.com and we need that sub-domain to have access to all the cookies added by www.example.com.
Please help in understanding which of the cookies will NOT be shared and why.
Also, another query regarding cookies is - HttpOnly. Will cookies marked as HttpOnly be not available across sub-domains?