title: Terminate the session on IIS
body: <p>I have a requirement that is :--</p>
  
  <p>On click of ‘Logout’ link, popup message “This will terminate the session and close the browser. Do you want to continue?” with Yes and No buttons. On click of ‘Yes’, session should be terminated in IIS server and current tab of browser closed.</p>
  
  <p>To implement this I have writen below piece of code but I dont know how to terminate the session on IIS</p>
  
  <pre><code>    &lt;script language="vbscript"&gt;
              Function OnClickLogout() 
                  dim Answer, msg
                  Msg = "This will terminate the session and close the browser. Do you want to continue?"
                  Answer = MsgBox(Msg, vbYesNo + vbCritical, "Error")
                  if Answer = vbYes then
                      window.close
                  else
                      'Retrun to the previous page
                  end if
              End Function
          &lt;/script&gt;
  </code></pre>
  
  <p>Could anyone please suggest me how to do this in vbscript. My website is in ASP but its a legacy application so I have to do the code!!!</p>