如何利用cookies或者application设计一个登录页面
要示每次打开页面时显示最近一次登录的姓名,日期和时间。
显示最近一次的登录 姓名 日期 用什么对象啊 我做了 一些 ,请高手帮忙添加一些:
<%
Response.Cookies("xm")="xm"
Response.Cookies("xm").Expires=#May 10,2010#
%>
<html>
<body>
<form id="form1" name="form1" method="post" action="222.asp">
<table width="343" height="142" border="1">
<tr>
<td width="103">用户</td>
<td width="224"><label>
<input type="text" name="xm" value="test" />
</label></td>
</tr>
<tr>
<td>密码</td>
<td><label>
<input type="password" name="mm" />
</label></td>
</tr>
<tr>
<td colspan="2"><label>
<input type="submit" name="Submit" value="登陆" />
<input type="reset" name="Submit2" value="重置" />
</label></td>
</tr>
</table>
</form>
<%
if (xm="") then
Response.write("<p>请登录</p>")
else
Response.write("<p>你好 " + Request.Cookies("xm") + "你上次登陆的时间是 " + + "!</p>")
end if
%>
</body>
</html>