<!--#include file=conn.asp-->
<%
IsAdmin=session("IsAdmin")
If IsAdmin=true Then
	set rs=server.createobject("adodb.recordset")
	AdminID=session("AdminID")
	sql="select * from admin where id="&AdminID
	rs.open sql,conn,1,3
	if not rs.EOF then
		rs("LogoutTime")=now()
		rs.Update
		Session("AdminID")=""
		Session("IsAdmin")=""
		Session("KEY")=""
		rs.Close
		set rs=nothing
	else
response.redirect ("index.htm")

	end if
end if
conn.close
set conn=nothing	
response.redirect ("index.htm")
%>
