HTML:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script type="text/javascript">
var xmlhttp;
function createXmlhttp(){
}
function ClearSession()
{
}
function handleStateChange()
{
}
</script>
</head>
<body>
<input name="Submit" type="button" οnclick="ClearSession();" value="清空Session" />
</body>
WEB服务:
<%@ WebService Language="C#" class="Service" %>
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Web.SessionState;//不引入是不可以操作Session的
[WebService(Namespace = "http://tsingjun.cn/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
//清空Session代码
}