Adding more set-cookies to the header #46
KarolBychowski
started this conversation in
Ideas
Replies: 1 comment
-
thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Only one cookie is always added, the last one (image). And this is all because in the WebResponses.cpp file there is a check if the set-cookie already exists, if so, we remove it and add a new one. If we comment out "return false", then everything works fine. (image)
You need to ask for false to setResponse->addHeader("Set-Cookie", "SessionID=" + sessionID, false)
Beta Was this translation helpful? Give feedback.
All reactions