您现在的位置是:网站首页> 编程资料编程资料
如何用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
%>
<% if bLoginSaved then %>
将注册内容保存到Cookie
<% end if %>
欢迎光临随风起舞!
您可能感兴趣的文章: