diff --git a/www/wsfed/sp/prp.php b/www/wsfed/sp/prp.php
index 76e4584e3f668de147db4320c6fca17f095de96b..396656f434beaf01508afe86eee855a552619b46 100644
--- a/www/wsfed/sp/prp.php
+++ b/www/wsfed/sp/prp.php
@@ -2,8 +2,6 @@
 /**
  * WS-Federation/ADFS PRP protocol support for simpleSAMLphp.
  *
- * This endpoint currently only supports assertions. Logout is not implemented.
- *
  * The AssertionConsumerService handler accepts responses from a WS-Federation
  * Account Partner using the Passive Requestor Profile (PRP) and handles it as
  * a Resource Partner.  It receives a response, parses it and passes on the
@@ -25,6 +23,11 @@ SimpleSAML_Logger::info('WS-Fed - SP.AssertionConsumerService: Accessing WS-Fed
 if (!$config->getBoolean('enable.wsfed-sp', false))
 	SimpleSAML_Utilities::fatalError($session->getTrackID(), 'NOACCESS');
 
+if (!empty($_GET['wa']) and ($_GET['wa'] == 'wsignoutcleanup1.0')) {
+	print 'Logged Out';
+	exit;
+}
+
 /* Make sure that the correct query parameters are passed to this script. */
 try {
 	if (empty($_POST['wresult'])) {