HI,
I have the following Problem. I have a list of variables posted from a form. My first script processes them and outputs the result.
But On following a link to the my second script (from my first script) the variables should be in scope there too. And i should be able to go back to the first script from second again on a click and so on. I tried registering them as session variables. Bu the trouble is I am not sure where to destroy them. On performing a new search(on new input to form varaibles), the old session variables are stil registered and prints out the old results.
For ex: My first script is as follows:
session_start();
session_register("name");
session_register("timepoint");
Now when i go the second script the vars are in scope. BUt on a new search the old results are printed again.
So i tried destroying the session everytime in my first script as
session_start();
session_unregister("name");
session_unregister("timepoint");
session_destroy();
session_start();
session_register("name");
session_register("timepoint");
But I stil get the old results. That is the old session does not get destroyed.So what is wrong here. How should i
go about it. Pointers would be appreciated.
Regards,
Sachin.