aws-dynamodb-session-tomcat icon indicating copy to clipboard operation
aws-dynamodb-session-tomcat copied to clipboard

Session replication in DynamoDb with LoadBalancers for spring security applicatin

Open nani532 opened this issue 8 years ago • 1 comments

Hi, I have deployed a war file developer in spring security basic example and deployed in two ec2 tomcat servers and those two are configured in LoadBalancers. When load balancer starts its checking health status of that .In that process session was creating and stores in dynamodb. I can see multiple sessions are storing which in encrypted/Hash format . If I have not enabled sticky session my application is not able to login . It is redirecting to login page from success handler . I can tomcat logs as unable to load session id "...." ... Please can you help me how to configure with LoadBalancers.

Note: My application developed by spring security boot . and using 2.0.4 version of aws-dynamodb-session-tomcat jar file

logs are

2016-09-29 07:36:40.544 WARN 2104 --- [gine[Catalina]]] c.a.t.a.s.d.s.DynamoDBS essionStore : Unable to load session with id FCA7A4923F849454E5151BB5C0B34 BE5 2016-09-29 07:36:41.602 WARN 2104 --- [gine[Catalina]]] c.a.t.a.s.d.s.DynamoDBS essionStore : Unable to load session with id E67AF4A123B5E21706CC17FB5BA4A 9FD 2016-09-29 07:36:41.887 WARN 2104 --- [gine[Catalina]]] c.a.t.a.s.d.s.DynamoDBS essionStore : Unable to load session with id 9BF496F01FF04B0E5603790E15BE8 8EC 2016-09-29 07:36:42.211 WARN 2104 --- [gine[Catalina]]] c.a.t.a.s.d.s.DynamoDBS essionStore : Unable to load session with id 94D7CACE1D6D7F5FE46CF34E92E42 E3A 2016-09-29 07:36:42.540 WARN 2104 --- [gine[Catalina]]] c.a.t.a.s.d.s.DynamoDBS essionStore : Unable to load session with id 81321174734E80EBD9D658DB36111 AFA 2016-09-29 07:36:42.826 WARN 2104 --- [gine[Catalina]]] c.a.t.a.s.d.s.DynamoDBS essionStore : Unable to load session with id 6759E76A383D42AFC4E840A86361D F87 2016-09-29 07:36:43.883 WARN 2104 --- [gine[Catalina]]] c.a.t.a.s.d.s.DynamoDBS essionStore : Unable to load session with id 6E0D1F1AC2F16F2A21E1AD2C57CCA B1E 2016-09-29 07:36:44.414 WARN 2104 --- [gine[Catalina]]] c.a.t.a.s.d.s.DynamoDBS essionStore : Unable to load session with id 236497209611F5B6634BBFE162442 5CE 2016-09-29 07:36:45.148 WARN 2104 --- [gine[Catalina]]] c.a.t.a.s.d.s.DynamoDBS essionStore : Unable to load session with id FBBC1F6B46771BC0077C9177A85E6

nani532 avatar Sep 28 '16 03:09 nani532

This project has been archived. Please see the README.md for more detail on alternative projects.

hyandell avatar Feb 06 '18 21:02 hyandell