title: Not able to make my web app logout of ADFS
body: <p>I have a web application and have added that in the replying party in adfs. For my application i have used the identity and access tool. My application is built on .Net 4.5 and MVC 4 architecture. For login, i get redirected to the login page and it uses my ADFS active directory authentication. The issue i am facing is with signout. I have so far tried the following things,<br>
  1.  <code>&lt;a href="&lt;myADFSserver&gt;/adfs/ls/?wa=wsignout1.0&amp;wreply=https://localhost"&gt;Logout&lt;/a&gt;</code></p>
  
  <p>This redirects me the logout screen, but on clicking the back button i am able to go back to my application. If i open my application in the next tab it still opens without any credential prompt.<br>
  2. </p>
  
  <pre><code>string absoluteUrl = HttpContext.Request.Url.AbsoluteUri;
  string replyUrl = absoluteUrl.Substring(0, absoluteUrl.LastIndexOf("/") + 1);
  WSFederationAuthenticationModule.FederatedSignOut(null, new Uri(replyUrl));
  </code></pre>
  
  <p>This gives me an error saying signout url cant be null. On entering the URl the situation is the same as in point 1.</p>
  
  <p>What am i missing in the above code or what could be the possible solution.</p>