自动完成密码不适合我的webapp的工作(在Firefox) [英] Autocomplete for password doesn't work for my webapp (in firefox)
问题描述
我创建一个登录的HTML,但由于某些原因自动完成不工作在Firefox提交表单。
I've created a login submit form in HTML but for some reason autocompletion does not work in firefox.
这是在Firefox中发生了什么:
- 我给的用户名和密码,点击登录按钮
- 火狐提示我,如果我想记住密码。我preSS记住和登录的作品。
- 我注销并返回到登录页面。我期望的用户名和密码字段是pfilled $ P $但事实并非如此。请注意,我不(要)使用cookies。
This is what happens in Firefox: - I give username and password and click on the login button - Firefox prompts me if I would like to remember the password. I press 'remember' and login works. - I log out and return to the login page. I would expect the username and password field to be prefilled but that is not the case. Notice that I don't (want to) use cookies.
这里的code此页:
<form name="login_form" id="login_form" autocomplete="ON" onsubmit="javascript:xajax_action_login(document.getElementById('user_name').value, document.getElementById('password').value); return false;">
<div class="login_line">
<div class="login_line_left">name</div>
<div id="user_name_id" class="login_line_right"><input size="16" maxlength="16" name="user_name" id="user_name" type="text"></div>
</div> <!-- login_line -->
<div class="login_line">
<div class="login_line_left">password</div>
<div id="password_id" class="login_line_right"><input size="16" maxlength="16" name="password" id="password" type="password"></div>
</div> <!-- login_line -->
<div class="login_line">
<div class="login_line_left"> </div>
<div class="login_line_right"><input class="button" value="login" type="submit"></div>
</div> <!-- login_line -->
</form> <!-- login_form -->
什么是错我的code?我怎样才能自动完成在FF的工作与我的code?
What is wrong with my code? How can I get autocompletion to work in FF with my code?
自动完成做工作,例如Gmail的正确。每一次我访问的Gmail的登录页面,电子邮件和密码字段正确prefilled。我不使用'记得我在这台计算机复选框,以便不使用Cookie。
Autocompletion does work correct with for instance gmail. Each time I visit the login page of gmail, the email and password fields are correctly prefilled. I don't use the 'remember me on this computer' checkbox so no cookies are used.
更新我使用PHP和FF3
Update I'm using php and FF3
谢谢,
碧玉
推荐答案
请问您登录网址包括每一次改变会话ID?
Does your login URL include a session ID that changes each time?
这篇关于自动完成密码不适合我的webapp的工作(在Firefox)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!