hi
halojoy here
I have seen this behavior at a couple of websites (some friends of mine) I use to visit.
You have to surf a couple of pages at website
or even reload index.php 2-3 times, before session get some values
and will make eveything work alright for rest of my visit.
But, I have never had this problem at any script of my own.
Maybe because of something in my own way, habbit, to use sessions.
If you havent done this already,
run your website script with error_reporting( E_ALL);
to see if any notice of variables NOT DEFINED or NOT SET at first run
I try to write my scripts, that I DO NOT GET any such notices
This means I always set variables to "0" or "empty" before they occur in PHP script
Hope it helps
But I doubt we can find anything you havent found out your self
At least this is a session thing.
So examine values (monitor) that session file and its contents,
at each refresh and page runs = tracking debugging, step for step
might give you an idea of what is happening.
I can load, read and reload contents of any current session file (using my text-editor)
as I use a php.ini custom folder for PHP SESSION temp files at my own homepage Apache server.
Can be some interesting reading!
/halojoy
🙂