亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

如何用Cookie進(jìn)行登錄驗(yàn)證?

 更新時(shí)間:2006年11月16日 00:00:00   作者:  

login.htm
請(qǐng)注冊(cè)登錄隨風(fēng)起舞
<FORM ACTION="checklogin.asp" METHOD="POST">
   
電子郵件: <input TYPE="Text" NAME="email" SIZE="40">
   
密碼: <input TYPE="Password" NAME="Password" SIZE="40">
    <input TYPE="Checkbox" NAME="SaveLogin" value="ON">
您要將注冊(cè)內(nèi)容保存為Cookie?
    <input TYPE="Submit" VALUE="
登錄"><input TYPE="RESET">
</FORM>

checklogin.asp
<%
dim bLoginSaved
if Request("SaveLogin") = "on" then
    Response.Cookies("SavedLogin")("EMail") = Request("email")
    Response.Cookies("SavedLogin")("pw") = Request("password")
    Response.Cookies("SavedLogin").Expires = Date + 30
    bLoginSaved = True
else
    bLoginSaved = False
end if
%>

<html>
<head>

<title>山水盈盈之登錄驗(yàn)證</title>

</head>
<body>
<% if bLoginSaved then %>
   
將注冊(cè)內(nèi)容保存到Cookie<HR>
<% end if %>
歡迎光臨隨風(fēng)起舞!<P>
請(qǐng)確認(rèn)您的電子郵件: <% = Request("email") %>
</body></html>

相關(guān)文章

最新評(píng)論