Do we still need to include =&Search=Search at the end of the url to clear searches?
Are there other options to clear the search? url rewrites?
I stumbled upon this old code (below) which I am sure you helped me with and have some questions.
1) I see this code is related to a session but I don't understand if it requires a user to be logged in or if a session can refer to a search session.
2) If this code is effective, and recommend are there any changes that should be made to work with mySQLi ?
3) If we use this code for mySQL page does it need to be modified (replace GET with something) (I am thinking that GET is vulnerable, but I am sorry, I don't recall the related details.)
CODE
<?php
if(!session_id()) session_start();
if(isset($_SESSION["WADbSearch1_events_Results"]) && isset($_GET['reset']) && $_GET['reset'] == "true") {
unset($_SESSION["WADbSearch1_events_Results"]);
}
?>
Thank you!