Skip to content

Set-Cookie header returns multiple entries, which do I use? #407

Answered by nikemeal
nikemeal asked this question in Q&A
Discussion options

You must be logged in to vote

I hate myself! After pretty much going through every step from the start again to see what I might have missed, I noticed that my email for the identity field I'd typed as ,.co.uk instead of .co.uk
So me getting the 302 was it redirecting me back to the same page because my login was incorrect not because I was doing something wrong.
I updated it and got back the 200 OK page with the passcode instead.

For future reference though (as I think others had correctly noted) you need all parts of the cookies combined, so when looping through headers I had adjusted one of the other examples in discussions to just be this

if (isset($tmp[strtolower($h[0])])) {
    $tmp[strtolower($h[0])] = sprintf("%…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@iqtedar123
Comment options

@JonG67x
Comment options

Answer selected by nikemeal
Comment options

You must be logged in to vote
1 reply
@iqtedar123
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants