joecool2005 0 Posted November 5, 2014 Report Share Posted November 5, 2014 Hi, I have a cookie with specific key like this Response.Cookies("user")("firstname")="John"Response.Cookies("user")("Lastname") ="Smith"Response.Cookies("user").Path = "/"&"; HttpOnly"Response.Cookies("user").Secure = TrueResponse.Cookies("user").Expires = DateAdd("m",15,Now()) How do you use Response.AddHeader when the cookie "user" has multiple keys? I want the cookie in mode HttpOnly and secure=true. Thanks Link to post Share on other sites
justsomeguy 1,135 Posted November 5, 2014 Report Share Posted November 5, 2014 You might want to check the response headers for the server to see how it sets cookies like that, and you can duplicate what you see there. Link to post Share on other sites
MBarg 0 Posted November 28, 2020 Report Share Posted November 28, 2020 Response.AddHeader "Set-Cookie", "user=firstname=John&lastname=Smith&=m&age=60&etc=keepOnLikeThis; Path=/; Secure; SameSite=Strict; HostOnly; HttpOnly; Expires=" & aGMTformattedDate Link to post Share on other sites
Recommended Posts