Logging out a user from a different application.. Spring Security
===

I have two separate web applications X & Y deployed on two separate sites.. Y takes care    of credit card processing and X takes care of remaining functionality..   
   
   Usecase: If A would like to purchase a subscription, he does following things
   
   (i) A logs into X

   (ii) A adds a subscription

   (iii) After adding the subscription, he logs into Y and adds his credit card information

   (iv) He comes back to X and pays for it..
   
   **Now my question here is, how to manually logout A from Y when he is in X..? In crude terms, how to do a logout of a user from other application?**
   
  I did confiure session invalidation period for Y and I am using logout filter in Y also..
   
  I am using **Spring Security**, Hibernate, Spring, Spring MVC.. in both X & Y..
   
 Thanks,
 Vivekanand Alampally
   
   
   
   
   
   