Hat you do is the same as if you do nothing, because your session_write_close() is called near the end of script and sessions are automatically closed at the end of a script. You should 'copy' all needed variables from the session in your header.php like this:
session_start(); $copy_user = $user; //if $user and $user_email are session data $copy_user_email = $user_email; session_write_close(); //or session_end() if your php knows it That way you can access $copy_* in the body instead of session variables. It works as readonly access to session data Tom Dima Dubin wrote: > Hi Tom > Thanks for your help but the problem still happens :-( > First I tried to use session_readonly() but it was unknown FUNC` in my php, > then I try the second way : > I have header.php & footer.php in the header I use session_start(); and in > the footer I use session_write_close() and still every minute the site > "freezes". > Is there any other way ? I really need to use these session's... > > thanks again for your great help, > Dima. >