Cookie is most effective when your browser is closed. While running, browsers store some data in RAM, which Cookie doesn't have access to