The thing is, you have to use something that is independent of the page. Either you have to write a record to the database and check it, or you have to write a cookie and check that.
Using a cookie is probably best because you can check the cookie with a javascript script that is part of the page itself.
I can tell you don't like these answers, as there is some work and learning involved. You are trying to control the behavior of the webpage in ways that aren't inherent in the browser's behavior. To do this, you will have to write some code of your own.
Good luck.