我想知道,当我们打电话时window.close
,这是否也会终止 IIS 上的会话?
我正在编写下面的代码,并且试图从 IIS 终止用户的会话。
Sub 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() ' Does this terminate the sesion of the user also?
else
'Return to the previous page
End if
End Sub
如果没有那么请告诉我我该如何完成它。