joecool2005 Posted November 5, 2014 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 comment Share on other sites More sharing options...
justsomeguy Posted November 5, 2014 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 comment Share on other sites More sharing options...
MBarg Posted November 28, 2020 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 comment Share on other sites More sharing options...
Recommended Posts