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 18, 2018 in AWS by datageek
• 2,540 points
618 views

1 answer to this question.

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 18, 2018 by Archana
• 4,170 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, 2019 in AWS by Archana
• 5,640 points
2,744 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
• 58,020 points
5,411 views
+3 votes
6 answers

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

Hey, 3 ways you can do this: To ...READ MORE

answered Oct 9, 2018 in AWS by Omkar
• 69,220 points
20,068 views
+2 votes
1 answer

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

PCF (Pivotal Cloud Foundry)is a commercial cloud ...READ MORE

answered Sep 11, 2018 in AWS by Priyaj
• 58,020 points
21,646 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
• 58,020 points
1,406 views
+1 vote
2 answers

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,640 points
54,451 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, 2019 in AWS by Archana
• 5,640 points
19,058 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, 2019 in AWS by datageek
• 3,090 points
1,654 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
• 4,170 points
3,287 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
• 4,170 points
944 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP