Reputation: 7335
I am a little uncertain about the sequence of events when using cookies. Here's what I think happens if a client application repeatedly requests the same page from the server:
Is that the correct sequence? ( I'm particularly interested in Step 4 - does the server return a Set-Cookie in response to a request that has supplied a cookie )
The cookie in question is actually a JSESSIONID cookie, if that makes any difference.
Thanks
Dave
Upvotes: 2
Views: 3001
Reputation: 9139
Yes, that's the correct sequence. However, I've seen many applications sending back "Set-Cookie" header with the same value. It does not harm the flow, since values are the same and even if client updates the cookie it's still the same value (thus, the same session).
Upvotes: 1