<!--#include file="../inc/Bll.asp"-->
<!--#include file="../inc/Constant.asp"-->
<!--#include file="../inc/Md5.asp"-->
<!--#include file="../inc/App.asp"-->
<%

'整合应用退出
i_Syn_Notify_LogOut
'本地数据注册
LocalLogOut

'本站数据注册
Sub LocalLogOut()
	dim iRe
	RS_End
	On Error Resume Next
	RS.OPEN "select top 1 * from [i_User_Info] where [i_User_ID]="&session(Session_UserID_Arg) , DB_CONN , 1 , 3
	if RS.recordcount>0 then
		'退出成功
		RS("i_User_Online")=0
		RS.Update()
		if Request.QueryString("t")<>"" then
			iRe = "location.href='"&Request.QueryString("t")&"'"
		else
			iRe = "location.href='/i/"&SysConfig("i_Sys_Config_TemplatePath")&"/Login.html'"
		end if
	else
		iRe = "alert('登录失败,请检查');history.back();"
	end if
	Session.Abandon()
	Response.Cookies("ishow")("iUserName")=""
	Response.Cookies("ishow")("iUserPass")=""
	Response.Cookies("ishow").Expires= (now()-1)
	RS_End
	RWS iRe
	Rend
End Sub
%>