I'm attempting to write test code for a web application that over-writes its own cookies several times during the same request. I noticed that the ServletUnit API seems only to return the first cookie stored. Is this normal behaviour and if so how can I fix it?
TIA Ricardo
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry, to be clearer: if you store more than one cookie with the same name/key, ServletUnit will only send the FIRST cookie stored under the same name to the client, when, ideally, the behaviour would be to return the LAST cookie stored under the same name to the client.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm attempting to write test code for a web application that over-writes its own cookies several times during the same request. I noticed that the ServletUnit API seems only to return the first cookie stored. Is this normal behaviour and if so how can I fix it?
TIA Ricardo
Sorry, to be clearer: if you store more than one cookie with the same name/key, ServletUnit will only send the FIRST cookie stored under the same name to the client, when, ideally, the behaviour would be to return the LAST cookie stored under the same name to the client.