I had the same problem when I used session in the submission form page. If this is the case, you can simply put this line before session_start():
session_cache_limiter('private')
It should do the trick. IIf this is not the case, I think that somehow the page is refreshed. Find a way to prevent it (refreshing) from happening.