在asp登录表单中添加“记住我”框

时间:2009-05-13 18:09:41

标签: forms authentication cookies asp-classic

有人能指出我为正确的方向添加一个简单的登录页面的记住我复选框吗?它基本上只使用密码,而不是用户名。这可能吗?

以下是登录asp页面的未受保护部分的代码:

'****************** Begin UNprotected content ****************************
'
'   Enter the content you want the user to see prior to loggin in here.
'   Be sure the content is between the < % Else % > and < % End If % > asp
'   tags here. 

%>
<p>Welcome to our Members Only area. Please enter the password we supplied you to Log
In.</p>
<form action="<%= strPage %>" method="post" name="frmMembers" id="frmMembers">
<table id="n3-LogInTable">
    <caption><%= strCaption %></caption>
    <col class="colOne" />
    <col />

    <tr>
        <td nowrap="nowrap">Password</td>
        <td><input name="txtPassword" type="password" class="n3-textField" id="txtPassword" size="30" maxlength="50" /></td>
    </tr>
    <tr>
        <td colspan="2" nowrap="nowrap"><input name="btnLogIn" type="image" id="btnLogIn" src="login/n3_stuff/btn_login.gif" /></td>
    </tr>
    <tr></tr>
</table>
</form>
<% '****************** End UNprotected content **************************** 

1 个答案:

答案 0 :(得分:1)