Maintain a session in several applications

1

I am using java and jsf I have created some applications each with their own login, now I need to validate session in one applications and when I move to another applications I do not log in again.

I have tried saving variables in session and creating cookies for each application, any suggestions.

extra data  - Glasfish 4  - primefaces  - jsf

    
asked by user1492121 17.03.2017 в 19:32
source

1 answer

1

Hello to replicate session between your environment you can implement the use of Oracle Coherence, you will have to make some adjustments to your deployment file and add the jar of coherence, additional I leave a link with lso standard to share session between applications.

In your glassfish-web.xml

<glassfish-web-app> 
   <session-config> 
       <session-manager persistence-type="coherence-web" /> 
   </session-config> 
<glassfish-web-app>

Session Sharing between Java Web Applications

Oracle Coherence

Replication of session WebLogic GlassFish Server

    
answered by 17.03.2017 в 20:19