ijmacd
New Member
- Messages
- 7
- Reaction score
- 0
- Points
- 0
After seeing some issues with my site I did a bit of research in the forums and read rumours that you use load balancing servers and they have had issues with maintaining PHP sessions. I think I'm now coming up against this issue too.
I'll explain my issue however. When pages are loaded on my site PHP starts a session to store user information. Starting from a fresh start - clearing out specific PHP Session cookies - all works as expected. A session is created and a unique User ID is assigned. Browsing around some pages and all seems normal and I can verify the User ID is maintained. However all of a sudden I suspect the pages are coming from the other server which has no record of the existing session so creates a new one with a new Unique ID. I can then browse further and refresh pages and see the User ID switching between the two. This is obviously a problem for visitor tracking and Logins.
Am I right, is it an issue with the load balancing? Is there anything you can do even disabling load balancing completely for my site?
Thanks for looking into the issue,
Iain
I'll explain my issue however. When pages are loaded on my site PHP starts a session to store user information. Starting from a fresh start - clearing out specific PHP Session cookies - all works as expected. A session is created and a unique User ID is assigned. Browsing around some pages and all seems normal and I can verify the User ID is maintained. However all of a sudden I suspect the pages are coming from the other server which has no record of the existing session so creates a new one with a new Unique ID. I can then browse further and refresh pages and see the User ID switching between the two. This is obviously a problem for visitor tracking and Logins.
Am I right, is it an issue with the load balancing? Is there anything you can do even disabling load balancing completely for my site?
Thanks for looking into the issue,
Iain