We use Amazon Web Services (AWS) and we have several web servers and a load balancer. The problem with web servers is that $ _SESSION is unique to each of them. I save some user information in $ _SESSION.
What is the correct way to synchronize this information? Is there a way to combine the place where these sessions are stored, or should I use MySQL to store this data (I don't like the last option)?
I think you are looking for "Sticky Sessions". If I am right about this, Amazon gives you two different options.
( , ) http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/US_StickySessions.html#US_EnableStickySessionsLBCookies
http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/US_StickySessions.html#US_EnableStickySessionsAppCookies
MySQL, - , Amazon Web Services (AWS) PHP Amazon DynamoDB, , PHP , :
HTTP- [...]. PHP ; -. , . ., PHP custom , , Memcache, cookie . [...] [ ]
HTTP- [...]. PHP ; -. , . .
, PHP custom , , Memcache, cookie . [...] [ ]
.
, , DynamoDB, amazon. , , / .