Storing search query between page loads

Hi all,

I’ve modified BP’s search functions (bp_has_groups, bp_has_members) to handle more advanced searches, and this currently works to load the desired results on the first page!

However if there is more than 1 page of results, clicking to another page loses the advanced search fields of my query.

I think this is because BP stores the search query (search_terms) in a cookie or some other persistent storage, then recalls the query settings when another page of results is accessed.

If I’m correct about how this works, then I need to add my advanced search fields to this “persistent storage” system so these fields can be stored/recalled on page loads.

What do I need to do to make this work?

Any/all help is greatly appreciated, thanks!