views:

137

answers:

3

let say in tomcat application server we deployed 2 web applications , web application A, web application B. How to pro-grammatically sync session from web application A to web application B . In other words, as long as user login to web application A, he is already login to web application B. As well when he log out.

A: 

Is this about authenticating user only once with same username and password for multiple sites?

If so google Single Sign On. There are a number of frameworks out there for doing just that.

Gregory Mostizky
i do not want to use SSO
cometta
why not? your question describes something SSO would solve easily
Gregory Mostizky
A: 

Use the single sign on valve.

df
can this be done if 2 web applications are different?
cometta
A: 

You may check Sharing session data between contexts HOW-TO to see if it solves your problem.

antispam