javascripthtmlcookiescookieconsent

Reset Cookie Consent Message


So I use a standard Cookie Consent on my pages generated by https://cookieconsent.insites.com/download/ Though I would like that the cookie consent reappears every time someone loads the site.


Solution

  • it may not such a clean way but it deletes / resets the cookie

        <?php
    // set the expiration date to one hour ago
    setcookie("COOKIENAME", "", time() - 3600);
    ?>