I think I know what the problem is ... maybe some server problem, but I think it goes more in the direction how PHP handles sessions ... I didn't have such problems so far but this is what I think:
Let's say you have a script where you set a session variable.
The line $_SESSION['sess_host_ad'] = $host_ad doesn't write the session data to the disk but rather holds the value in memory.
As soon as the script execution ends the session data is written to the disk. Seems like you can't expect the session data to be reliable in any case until it is written to the disk. This might be an issue with the OS, don't know.
I think the solution is simple:
In any script where you have something like:
$avar = .....;
$_SESSION['sess_avar'] = $avar;
dont't use $_SESSION['sess_avar'] further on in the script but rather just $avar. After execution of the script the session data will be written and will contain the data expected if you access it in other scripts. I think doing so will solve the problems.
Thomas