I have a search page that registers the variables passed from the search form into a session. I did this so that my NEXT and PREVIOUS links would work properly, as I have variables that contain spaces.
This works fine, but when the user re-searches with new variables, I cannot get the registered variables to change to the new values.
Is there a way to un_register or un_set variables and then immediately re-register them? I have tried it the "too easy to be true" way:
session_unregister(value);
session_register(value);
Obviously, this failed. I guess PHP does not like to juggle variables the way I do in my head.
Any ideas?