user1270478
user1270478

Reputation: 21

How to check JSessionID is valid in server end

I have 2 systems(A&B) which I would like to implement SSO(single sign on) between them. I would like A system to be the on-line check manage system, B system will send the JSESSIONID to A, to check whether this sessionid is valid in A's session pool. How to implement this interface in A system?

In A system, I used request.getSession() to get the right session, which not have the JSESSIONID parameter.

WEBSERVER : using TOMCAT.

Upvotes: 2

Views: 2445

Answers (1)

Jasonw
Jasonw

Reputation: 5064

EJP has actually answered your question. You will definitely want to look into Single Sign On from tomcat documentation. In tomcat server.xml uncomment the valve with classname org.apache.catalina.authenticator.SingleSignOn. If you found it is difficult to implement into your existing systems A and system B, you should get this book, as it has explanation on how to configure sso in tomcat. Check out the link on page two.

Upvotes: 2

Related Questions