How do I sync sessions using Amazon Web Services (AWS)?

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)?

+3
source share
3 answers

MySQL, - , Amazon Web Services (AWS) PHP Amazon DynamoDB, , PHP , :

HTTP- [...]. PHP ; -. , . .

, PHP custom , , Memcache, cookie . [...] [ ]

.

+4

, , DynamoDB, amazon. , , / .

  • Memcached - /. .
  • JCS - Java - , /. , , / -, ELB . , , . .
  • EhCache - , . , , , .
+1

All Articles