<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hermit</title>
    <description>The latest articles on DEV Community by Hermit (@hermit).</description>
    <link>https://dev.to/hermit</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F649100%2F87db56f4-a649-4d6b-8d3b-5bd66fc278e9.jpeg</url>
      <title>DEV Community: Hermit</title>
      <link>https://dev.to/hermit</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hermit"/>
    <language>en</language>
    <item>
      <title>AWS elb sticky session over IP</title>
      <dc:creator>Hermit</dc:creator>
      <pubDate>Sun, 04 Jul 2021 15:17:44 +0000</pubDate>
      <link>https://dev.to/hermit/aws-elb-sticky-session-over-ip-php</link>
      <guid>https://dev.to/hermit/aws-elb-sticky-session-over-ip-php</guid>
      <description>&lt;p&gt;Hi all,&lt;/p&gt;

&lt;p&gt;I am facing a challenge in configuring sticky session on AWS ELB. The problem statement which I have is, I want sticky session over IP and not over application. What I mean by that is, if  a request is coming from same IP of a particular user , like even though browser tab/window change, the sticky session should work. &lt;/p&gt;

&lt;p&gt;In my application (which runs on say &lt;a href="https://app.in"&gt;https://app.in&lt;/a&gt;), the authentication method uses third party app (which runs on say, &lt;a href="https://auth.in"&gt;https://auth.in&lt;/a&gt;). So when the login page loads, the session gets created at the server (say  box1 - one of EC2 boxes). The user clicks on login button and a new window pops up (with domain &lt;a href="https://auth.in"&gt;https://auth.in&lt;/a&gt;). The user now has to enter credentials details in &lt;a href="https://auth.in"&gt;https://auth.in&lt;/a&gt; and the verification request should go to box1 only (backend for auth and app both are running on all the boxes). But what is happening is, as soon I setup ELB, the session gets created at box1 but the verification request goes to Box2. Due to which the user never gets verified. &lt;/p&gt;

&lt;p&gt;Can this scenario be solved using sticky session? &lt;/p&gt;

&lt;p&gt;TIA. &lt;/p&gt;

</description>
      <category>aws</category>
      <category>elb</category>
    </item>
  </channel>
</rss>
