Well, you would need to use a cookie to track that the person is still navigating the website.
There are 2 two ways you can keep the variable(s). You can store in the database and retrieve it whenever you need during the user session.
You can also append all URLs with the variable name and data (?var_name=var_data) during the user session.
At any rate, you would need to track the visitor session through a cookie.
|