Deleting Cookie - Still in Cache

Hej!

I have a JavaScript function that deletes a cookie.

Basically it will set the validation date to a date in the past which works pretty alright (the cookie is immediately deleted from the hard disk).

The only problem I have no that it is still in the memory of the browser. So the browser will still recognize it as a cookie is being available.

If I close the browser and go to the page with the JavaScript function everything goes according plan.

My question is therefor: how can I make sure that the cache of the browser is being cleared so it won’t think that a cookie is still available?

Thanks in advance for your help!

KR // Patrick