I want to set a cookie (using JavaScript or jQuery) to only be sent exactly once.
I can set a cookie with an expiry date say 1 second away just before making the request, but this seems little delicate. I was wondering if there is a way to guarantee that a cookie survives for 1 request, and only one request...
I have had a look through the docs on MDN but con't see anything that fits the bill.
Any Ideas?