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.

57 lines
1.7 KiB

  1. <%@ Language=JavaScript %>
  2. <%
  3. //Response.Write( "signout: " + Request.QueryString( "Signout" ) + "<BR>")
  4. if ( Request.QueryString( "Signout" ) == "1" )
  5. {
  6. var g_ThisServer = Request.ServerVariables( "SERVER_NAME" )
  7. g_objPassportManager = Server.CreateObject("Passport.Manager");
  8. var szRedirectPage = Server.URLEncode("http://" + g_ThisServer + "/ResRedir.asp")
  9. var LogOutURL = g_objPassportManager.LogoutURL( szRedirectPage, false, Application("LCID") )
  10. Response.Redirect( LogOutURL )
  11. }
  12. else
  13. {
  14. Response.Cookies("OCAV3")( "PPIN" ) = "0"
  15. Response.Cookies("OCAV3")( "CID" ) = "0"
  16. Response.Cookies("OCAV3")( "GUID" ) = "0"
  17. Response.Cookies("OCAV3") = ""
  18. Response.ContentType="image/gif"
  19. Response.Expires=-1
  20. Response.AddHeader( "Cache-Control", "no-cache" )
  21. Response.AddHeader( "Pragma", "no-cache" )
  22. Response.Cookies("MSPProf") = ""
  23. Response.Cookies("MSPProf").Expires = "Jan 1,1998"
  24. Response.Cookies("MSPProf").Path = "/"
  25. Response.Cookies("MSPAuth") = ""
  26. Response.Cookies("MSPAuth").Expires = "Jan 1,1998"
  27. Response.Cookies("MSPAuth").Path = "/"
  28. //'If you have configured your web site to use a domain other than the default, then
  29. //'uncomment and modify the following lines:
  30. //' Response.Cookies("MSPProf").Domain = ".microsoft.com"
  31. //' Response.Cookies("MSPProf").Path = "/"
  32. //' Response.Cookies("MSPAuth").Domain = ".microsoft.com"
  33. //' Response.Cookies("MSPAuth").Path = "/"
  34. }
  35. //
  36. // ' To Insert loop to pause on logout screen Uncomment next 2 lines.
  37. // 'For i = 0 To 10000000
  38. // 'Next
  39. %>
  40. <!--#include File="signoutcheckmark.gif"-->