您现在的位置是:网站首页> 编程资料编程资料

如何用Cookie进行登录验证?_编程10000问_

2023-05-25 168人已围观

简介 如何用Cookie进行登录验证?_编程10000问_

login.htm
请注册登录随风起舞


    电子邮件:
   
密码:
   
您要将注册内容保存为Cookie?
    登录
">


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
%>


</span><span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-ascii-font-family: ''; mso-hansi-font-family: ''">山水盈盈之登录验证</span><span lang="EN-US" style="FONT-FAMILY: ''; mso-bidi-font-size: 9.0pt">



<% if bLoginSaved then %>
   
将注册内容保存到Cookie



<% end if %>
欢迎光临随风起舞!


请确认您的电子邮件: <% = Request("email") %>


-六神源码网