注销

it2022-05-09  34

function ClearSession() { $.ajax({ type: " get " , url: " /Main/Logout.aspx " , data: " clear=true " , success: function(msg) { if (msg != null ) { if (msg == ' true ' ) { alert( ' 成功注销该用户! ' ); location.href = ' /IndexTransferPage.aspx ' ; return true ; } } return false ; } }) } < input type = " button " class = " button_gray_s " value = " 注销 " onclick = " ClearSession(); " style = " cursor: hand; border:0px " /> Logout.aspx页面 protected void Page_Load( object sender, EventArgs e) { if (Request.QueryString[ " clear " ] != null ) { if (Request.QueryString[ " clear " ].ToLower().Trim() == " true " ) { Session.Abandon(); Response.Write( " true " ); Response.End(); } else { Response.Write( " false " ); } } }

转载于:https://www.cnblogs.com/yy-sun/archive/2011/03/29/1998790.html

相关资源:C语言实现系统关机注销功能

最新回复(0)