I am registering variables from queries, being set as a cookie on the results page of query.
<?php
session_start();
session_id();
session_register("Var_1");
session_register("Var_2");
/// etc....
?>
This passes search variables for previous / next page results. The problem I am running into is that in order to do another search by form input or link the session has to be destroyed or variables have to be unregistered before setting new query variables. I have not been able to set this action successfully on the same query results page.
I need a solution php, javascript or however to have to ability to unregister or destroy old query variables on click while passing new to results page while on same results page. And without destroying query variables when passing to previous / next page results.
As it is vistors must go to a search page in order to destroy session before starting new query. I would like to be able to do all on one page if possible. I haven't found any source code to support this successfully.
Thankful for any help..
James