Reputation: 79
So there is a searchbar with autocomplete, when user searches for something he can add it to list below which accumulates all added variables using session. How to make all of those session variables clear after user uses refresh browser or clear button?
Upvotes: 0
Views: 47
Reputation: 875
you can use unset()
or session_destroy()
on click of your clear button
Upvotes: 1