logout.asp
上传用户:comthink
上传日期:2021-05-06
资源大小:1280k
文件大小:1k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

HTML/CSS

  1. <!--#include file="conn.asp"-->
  2. <!--#include file="inc/const.asp"-->
  3. <%
  4. dim activeuser
  5. membername=request.cookies("mathren")("realname")
  6. if session("userid")<>"" then
  7. activeuser="delete from online where id="&session("userid")
  8. Conn.Execute activeuser
  9. end if
  10. if membername<>"" then
  11. activeuser="delete from online where realname='"&membername&"'"
  12. Conn.Execute activeuser
  13. end if
  14. Response.Cookies("mathren").path=cookiepath
  15. Response.Cookies("mathren")("realname")=""
  16. Response.Cookies("mathren")("password")=""
  17. Response.Cookies("mathren")("userid")=""
  18. Response.Cookies("mathren")("skinid")=""
  19. session("userid")=""
  20. conn.close
  21. set conn=nothing
  22. response.redirect("index.asp")
  23. %>