HttpOnly for request cookies
Asked Answered
S

1

5

Is there a way of setting a request cookie httpOnly? If not why can't we set it? I've set the response cookies to httpOnly using weblogx.xml/weblogic server.

Semiannual answered 11/1, 2014 at 1:16 Comment(0)
E
10

Not possible.

Cookies are set in a HTTP response, and are read from a HTTP request. You can only set flags when cookies are created, so they can only be set in the response when using HTTP so it would not make sense to set HttpOnly on a request cookie.

Encumbrancer answered 14/1, 2014 at 9:45 Comment(1)
I knew this, but I wanted to get a confirmation. Thanks very much and +1.Semiannual

© 2022 - 2024 — McMap. All rights reserved.