if session("username")= "" then
response.Write("<script>alert('请先登陆!');</script>")
response.Redirect("login.asp")
end if
%>
login.asp代码是
<!-- #include file="view_inc.asp" -->
<!--#include file="view_var.asp" -->
<!--#include file="function.asp" -->
<%
response.cookies("ht")("login_username")=trim(request.form("username"))
response.cookies("ht")("login_password")=Ucase(MD5(trim(request.form("username")) & trim(request.form("password")),16))
call dbopen
call checkuser
dim Cookies_ti,Cookies_Time,jsstr
if not isuser then
response.cookies("ht")("login_username")=""
response.cookies("ht")("login_password")=""
jsstr="对不起,您的登陆未能通过\n请检查您的输入是否正确,或者您的账号已经被锁定\n"
call TMshow(4,jsstr,"userlogin.asp")
else
if not request.form("memery_info")="on" then
Cookies_ti="您的信息没有被保存"
else
Cookies_Time=dateadd("d",30,date())
Cookies_ti="您的信息将保存到" & Cookies_Time
response.cookies("ht").expires=Cookies_Time
end if
jsstr="你好,"&username&"\n\n"& Cookies_ti
call TMshow(4,jsstr,wherefrom)
end if
%>
我怎么取session("username")的值呢 怎么在login.asp里面加 帮我看看 谢谢了