<!--#include file=conn.asp-->
<!--#include file=config.asp-->
<!--#include file=const.asp-->
<!-- #include file="inc/UPIConfig.asp" -->
<%
 '=========================================================
' File: logout.asp
' Version:3.0
' Date: 2005-8-19
' Script Written by xmrxw
'=========================================================
' Copyright (C) 2004,2005 Xmrxw.Com All rights reserved.
' Web: http://www.xmrxw.com,http://www.xmzxw.com
' Email: info@mssky.com,super@mssky.com
' QQ£º10689579¡¡Msn£ºzdlmicr@hotmail.com
'=========================================================
	dim activeuser
	membername=CheckStr(request.cookies(Forum_sn)("username"))
	if session("userid")<>"" then
	activeuser="delete from Ms_online where id="&session("userid")
	Conn.Execute activeuser
	end if
	if membername<>"" then
	activeuser="delete from Ms_online where username='"&membername&"'"
	Conn.Execute activeuser
	end if
	Response.Cookies(Forum_sn).path=cookiepath
	Response.Cookies(Forum_sn)("username")=""
	Response.Cookies(Forum_sn)("password")=""
	Response.Cookies(Forum_sn)("userclass")=""
	Response.Cookies(Forum_sn)("userid")=""
	Response.Cookies(Forum_sn)("userhidden")=""
	Response.Cookies(Forum_sn)("usercookies")=""
	session("userid")=""
	conn.close
	set conn=nothing
'	response.redirect("index.asp")

Response.Redirect HL_Url&Manage_Url&"User_Logout.asp"
response.end
%>