Accessing Cookies across Sub-domain
<p>We have cookies added by the current website say <em>www.example.com</em>. Cookie domain of those cookies is one of the following when viewed in browser,</p>

<ul>
<li>www.example.com (are also marked as HostOnly)</li>
<li>.example.com</li>
<li>.www.example.com</li>
</ul>

<p>Now, we are creating a sub-domain say <em>test.example.com</em> and we need that sub-domain to have access to all the cookies added by www.example.com.</p>

<p>Please help in understanding which of the cookies will NOT be shared and why.</p>

<p>Also, another query regarding cookies is - HttpOnly. Will cookies marked as HttpOnly be not available across sub-domains?</p>