Giter Site home page Giter Site logo

Comments (4)

RubavathiSrinivasan avatar RubavathiSrinivasan commented on September 26, 2024

on server failover, it creates a new sessionid.
We run three servers.
A http session is created with the HZ session id "HZ87EEE832D65749F5825F497D5D117914", on server1,
If server1 goes down requests are redirected to server2 and a new HZ session is created "HZ740B5BB492CA48B7BFAF12224BDAF1D9"

Why is it creating a new session id? Is there anythig we need to do in config?

from hazelcast-code-samples.

gAmUssA avatar gAmUssA commented on September 26, 2024

@RubavathiSrinivasan please, share your https server (load balancer) details.
Thank you

from hazelcast-code-samples.

RubavathiSrinivasan avatar RubavathiSrinivasan commented on September 26, 2024

@gAmUssA after added the cookie 'hazelcast.sessionId' and sticky session changes, it works fine now. But we need to maintain two session cookies, JSESSIONID and hazelcast.sessionId, is it possible to achieve session replication using JSESSIONID alone(especially on cluster failover) ? There are no clustered maps for originalsessionid as key and hazelcast.sessionId as value.

from hazelcast-code-samples.

mesutcelik avatar mesutcelik commented on September 26, 2024

JSESSIONID is controlled by web container and created if a new request comes into it. hazelcast.sessionId is used as clusterwide session id so that in case of failover new server figures out what session data is available for the new JSESSIONID.

To answer your question,JSESSIONID only is not sufficient for session replication.

This repository is not right place to discuss this. Can you please continue on Google Groups if you still have questions?

Thanks for using Hazelcast!

from hazelcast-code-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.