I am very new to PHP. I am creating an object and storing it within an array. Upon clicking a submit button I am refreshing the page by counting the array and populating a table on the page with the values found from the object within the array. This works fine. But once I close my browser and reopen the same page, all the values on the table still remain there! Added to that even though I don't click the submit button, but just press the refresh button in the browser, the table data gets populated as if the submit button is pressed!!!
How can I code to make sure that the data on the page does not remain there once the user has gone to another page or closed the browser. Just for your information, I'm using session_register to register the array. I am using apache as the webserver running on Linux redhat 8.
Please shed some light on the matter.