Session replication is a mechanism used to replicate the data stored in a session across different instances.
Questions tagged [session-replication]
121 questions
32
votes
3 answers
Sticky Sessions and Session Replication
I am evaluating the case of using sticky sessions with Session replication in tomcat. From my initial evaluation, I thought that if we enable Session replication, then session started in one tomcat node will be copied to all other tomcat nodes and…

Ashish
- 3,028
- 5
- 28
- 35
21
votes
6 answers
Tomcat's Clustering / Session Replication not replicating properly
I'm setting up clustering/replication on Tomcat 7 on my local machine, to evaluate it for use with my environment/codebase.
Setup
I have two identical tomcat servers in sibling directories running on different ports. I have httpd listening on two…

nvioli
- 4,137
- 3
- 22
- 38
12
votes
1 answer
memcached-session-manager on AWS
I've got a website running on Amazon Web Services that is deployed using Elastic Beanstalk and runs on a minimum of 2 EC2 micro instances. An auto scaling policy is in place, so that it can scale up and scale down depending on the the traffic in the…

satoshi
- 3,963
- 6
- 46
- 57
11
votes
3 answers
What are the different approaches for Java EE session replication?
I am working on a project that requires really high availability and my team is currently working on upgrading some infra-structure and software for a future release.
One of the features we would like to enable is to have session replication across…

Pablo
- 2,054
- 8
- 30
- 56
7
votes
2 answers
jboss cluster session replication not working (multiple jsessionid cookies)
I'm trying to authenticate on my web application deployed on a jboss working in cluster mode with 2 nodes.
After a succesful authentication I get redirected to an admin page where a Filter checks if I am logged in.
On standalone mode it works just…

NotGaeL
- 8,344
- 5
- 40
- 70
6
votes
4 answers
FOSS ASP.Net Session Replication Solution?
I've been searching (with little success) for a free/opensource session clustering and replication solution for asp.net. I've run across the usual suspects (indexus sharedcache, memcached), however, each has some limitations.
Indexus - Very…

jsight
- 27,819
- 25
- 107
- 140
5
votes
0 answers
Session Replication not working with tomcat7
In my nginx I have set upstream and setup sticky session with:
upstream tomcat {
ip_hash;
server localhost:XXXX;
server localhost:XXXY;
server localhost:XXYY;
}
I have added tag in my web.xml (in all…

SSC
- 2,956
- 3
- 27
- 43
5
votes
1 answer
Liferay cluster session replication
I'm trying to enable session replication in liferay on tomcat without much luck. I have written a small test to see if sessions are being replicated and it works well in a separate JSP file that I have placed under webapps/examples but when I input…

Kempe
- 367
- 1
- 3
- 13
5
votes
3 answers
Tomcat clustering - configuring 2 tomcats on different machines
I'm trying to create a tomcat cluster in order to replicate sessions.
my 2 tomcats are existing on two different machines,
All examples available showed clustering of 2 tomcats on same machine.
Where do i configure the ips of the tomcats in the…

Urbanleg
- 6,252
- 16
- 76
- 139
4
votes
1 answer
How do I make the session data serializable
Previously we have implemented sticky session.
Here's the link on our environment: Sticky Session in apache doesn't work
Our next task is to implement session replication.
We are current using tomcat example, cart.jsp to demonstrate this behavior.…

Wen Jun
- 522
- 3
- 9
- 19
4
votes
1 answer
Tomcat session replication issue
TL;DR - The node name in the sessionId is not being updated to the current node name in the backup when the primary goes down.
Tomcat version - apache-tomcat-7.0.50
I have two nodes (2 instances of my application in 2 seperate tomcats) set up, with…

bub
- 657
- 1
- 9
- 18
4
votes
1 answer
CAS 4 Clustering on AWS: Ticket not recognized
I'm trying to configure CAS (4.1) to work on a cluster envinronment inside amazon aws.
I've configured Tomcat 7 for clustering, but on aws you can't use multicast autodiscovery, so i've set up database session replication on tomcat context.
Session…

Emanuele Righetto
- 720
- 8
- 19
4
votes
1 answer
CLUSTER SECURITY EXCEPTION in wildfly
I configured wildfly in two system(master and slave) and able to control from central domain controller all the instances, but in my slave I am getting following exception
Server:server-four-slave] 06:32:05,826 ERROR [org.hornetq.core.server]…

Robert Smith
- 457
- 2
- 9
- 25
4
votes
1 answer
How do I setup session replication in Sakai 10?
The recent Open Apereo 14 conference had a session about distributed caching and session replication in Sakai 10:
http://lanyrd.com/2014/apereo/sdbbct/
What are the steps I need to take with Sakai 10 to allow for session replication?

samottenhoff
- 720
- 4
- 14
4
votes
1 answer
Are there issues with using Spring Security's HttpSessionSecurityContextRepository on CloudFoundry?
I understand that Spring Security's HttpSessionSecurityContextRepository makes use of HttpSession.
Furthermore, I have read that PaaS such as CloudFoundry try to avoid session replication for the purpose of scalability.
I intend to deploy an…

balteo
- 23,602
- 63
- 219
- 412