<!--#include file="inc.asp"-->
<%
set rs=server.createobject("adodb.recordset")
	sql="select * from admin where username='"&session("AdminName")&"'"
	rs.open sql,conn,1,3
	if rs.bof and rs.eof then
	session("AdminName")=""
	else
		rs("LogoutTime")=now()
		session("AdminName")=""
		rs.update
	end if
	Session.Abandon
	Session("AdminName") = ""
	rs.close
	set rs=nothing
	call CloseConn()
	Response.Redirect "../"
%>
