Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
773 B

  1. <%@ Page Language='C#' %>
  2. <script runat='server'>
  3. protected void Page_Init( object sender, EventArgs e )
  4. {
  5. //set the no cache headers
  6. Response.Expires = -1;
  7. Response.AddHeader( "Cache-Control", "no-cache" );
  8. Response.AddHeader( "Pragma", "no-cache" );
  9. //clear the cookies
  10. HttpCookie profcookie = new HttpCookie( "MSPProf", "" );
  11. HttpCookie authcookie = new HttpCookie( "MSPAuth", "" );
  12. profcookie.Expires = new DateTime( 1998,1,1 );
  13. authcookie.Expires = new DateTime( 1998,1,1 );
  14. Response.Cookies.Add( profcookie );
  15. Response.Cookies.Add( authcookie );
  16. //
  17. // Passport needs to get signoutcheckmark.gif echoed back in order to confirm
  18. // a successfuly signout.
  19. //
  20. Response.WriteFile( "signoutcheckmark.gif" );
  21. }
  22. </script>