public static void invalidateSession(Object session,HttpServletRequest request,HttpServletResponse response,String protocol) throws SessionException {
  SessionProvider provider=SessionManager.getProvider();
  if (!isMultipleProtocolSession(session,protocol)) {
    provider.invalidateSession(session,request,response);
  }
 else {
    removeFederationProtocol(session,protocol);
  }
}

public static void invalidateSession ( Object session , HttpServletRequest request , HttpServletResponse response , String protocol ) throws SessionException { SessionProvider provider = SessionManager . getProvider ( ) ; if ( ! isMultipleProtocolSession ( session , protocol ) ) { provider . invalidateSession ( session , request , response ) ; } else { removeFederationProtocol ( session , protocol ) ; } }
invalidates session for a specific protocol . this method invaldates the session if it is not used in any other federation protocol , otherwise modifies session property to remove the sepcified protocol from the session .
