How to synchronize sessions using Amazon Web Services?

0 votes

I am Amazon Web Services (AWS) and i have multiple web servers and a load balancer. The problem with the web servers is, that the $_SESSION is unique for each one. I'm keeping some information about the user in the $_SESSION.

What is the proper way to synchronize this information? Is there any way to unite the place, where those sessions are being kept, or should I use MySQL to store this data?

Aug 17, 2018 in AWS by datageek
• 2,390 points
18 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

I think what you are looking for is 'Sticky Sessions'. If that’s what you are looking for, then Amazon gives you two different options.

Load Balancer http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/US_StickySessions.html#US_EnableStickySessionsLBCookies

And application based session stickinesshttp://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/US_StickySessions.html#US_EnableStickySessionsAppCookies

I hope this was informative.

answered Aug 17, 2018 by Archana
• 3,770 points

Related Questions In AWS

0 votes
1 answer

How to install tomcat 8 in Amazon Web Services?

Its very simple. You can just use ...READ MORE

answered Feb 8 in AWS by Archana
• 5,280 points
97 views
0 votes
1 answer

Explain how the buffer is used in Amazon web services?

In order to make system more efficient ...READ MORE

answered Jul 31, 2018 in AWS by Priyaj
• 56,100 points
58 views
+3 votes
5 answers

How to move files from amazon ec2 to s3 bucket using command line

First Option sm3cmd Use s3cmd s3cmd get s3://AWS_S3_Bucket/dir/file Take a ...READ MORE

answered Aug 29, 2018 in AWS by Priyaj
• 56,100 points
770 views
0 votes
1 answer

How PCF (Pivotal Cloud Foundry) is different from AWS (Amazon Web Services)

PCF is a commercial cloud platform (product) ...READ MORE

answered Sep 11, 2018 in AWS by Priyaj
• 56,100 points
148 views
0 votes
1 answer

Control EC2 instances that gets removed by an AutoScalingGroup using Amazon Web Services?

In a nutshell, the default termination policy ...READ MORE

answered Sep 27, 2018 in AWS by Priyaj
• 56,100 points
31 views
0 votes
1 answer

How to read a csv file stored in Amazon S3 using csv.DictReader

The code would be something like this: import ...READ MORE

answered Oct 25, 2018 in AWS by Archana
• 5,280 points
3,333 views
0 votes
1 answer

How to send HTML mails using Amazon SNS?

It's not possible to send HTML emails ...READ MORE

answered Jan 8 in AWS by Archana
• 5,280 points
245 views
0 votes
1 answer

How To Upload Images to Amazon S3 Using Perl?

That code won't upload the file - it's simply ...READ MORE

answered Mar 15 in AWS by datageek
• 2,830 points
22 views
0 votes
1 answer

How to upload a file to Amazon S3 without passing it my server?

This article pretty much explains the entire ...READ MORE

answered Aug 14, 2018 in AWS by Archana
• 3,770 points
34 views
0 votes
1 answer

How to upload a lib for Tomcat in Amazon EC2?

You need to set the proper privileges ...READ MORE

answered Aug 20, 2018 in AWS by Archana
• 3,770 points
26 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.