Hello.
I have a problem and I was wondering if some kind soul could help me.
I'm making a site that only registered users can access, and I use sessions to control it.
Logged in users can upload diferent kinds of files from certain page that is opened by a parent window in a pop-up window. The parent window shows some data that is retrived from a MySQL database and has a session_start() at the top to validate some control variables.
The pop-up window uploads the file correctly and after that some records in the database are updated, data that is also shown in the parent window.
In order to refresh the data just updated, I call a javascript function to do a submit in the parent window and to close the pop-up window.
Here's the problem: The parent window's data is not refreshed by the submit unless I take away the session_start() statement from the code or unless I delete the cache and temporary files and reload the page manually.
I added a submit button in the parent window and after the pop-up window is closed, I press the button and in some cases the page is refreshed in others it is not. I don't believe the button is the right solution.
I'm getting frustrated. Can anybody, PLEASE, help me? I need to refresh the page with the session_start() statement included on the top of my code.