I have a php session variable and I update it in a page and access it in different page, when the variable comes to a threshold I reset it to zero and increment it according to the number of files uploaded.
The problem is after it reaches to the threshold when I reset and reload the page again the file that I access the session variable not updating and shows zero though the files are uploaded.
But actually the session variable is incrementing in the other page. It shows the real value(the value incremented) after only reloading twice.
I want to know why it happens.