Hello,
I'm writing a script that uses php sessions to track logged-in users, as well as to pass some variables around. Everything works find on my computer. However, when one of my colleagues access the script, the page takes about 5x longer to load. While a page will load in less than a second for me, it takes about 4-5 seconds for him. When a page loads in 4 seconds for me, it takes about 15-20 seconds for him.
I have determined that this is being caused by the sessions. While a simple
<?php echo 'Hello World'; ?>
loads instantly for him, a
<?php session_start();
echo 'Hello World'; ?>
page has a noticeable slowdown. Note that this slowdown shows up on his computer, but not on mine.
We are both accessing the page using Firefox on Macs (though his computer is older than mine). The server is running php version 4.3.10. The one or two other computers I've tested this on do not seem to have this slow-down problem.
Why is his computer having so much problem running session? Is it him, or something to do with the PHP install? In either case, what can I do to assure that my users are not waiting longer than they have to for the page to load?
Thank you for your help.