slc
slc

Reputation: 79

Clearing accumulated session data

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

Answers (1)

Snehal S
Snehal S

Reputation: 875

you can use unset() or session_destroy() on click of your clear button

Upvotes: 1

Related Questions