![]() |
#2
slfyeye2007-08-20 09:27
|
protected void Button1_Click(object sender, EventArgs e)
{
if (Session["UserName"] != null)
{
Session.Remove("UserName");
Session.RemoveAll();
Response.Cookies["UserName"].Expires = DateTime.Now;
}
Page.RegisterStartupScript("","<script>window.top.document.location.href='index.aspx';</script>");
谢谢啊!

