主题:保存用户名和密码在Cookie之中,下次访问时,可以不用重新登录
保存用户名和密码在Cookie之中,下次访问时,可以不用重新登录
如图:
[img]http://dd.up.topzj.com/data/dd/13/71/48/a/07/04/08/20070408_4342536d8a2a7a03eb6fIC5Rs3Av84iv.jpg[/img]
Cookie3.jsp:
<%@page contentType="text/html;charset=gbk"%>
<html>
<form action = "Cookie3.jsp" method="post">
用户名:<input type = "text" name = "uname"><br>
密码:<input type = "password" name = "upass"><br>
保存密码:<input type = "checkbox" name = "save"><br>
<input type = "submit" name = "Submit" value = "提交">
</form>
如图:
[img]http://dd.up.topzj.com/data/dd/13/71/48/a/07/04/08/20070408_4342536d8a2a7a03eb6fIC5Rs3Av84iv.jpg[/img]
Cookie3.jsp:
<%@page contentType="text/html;charset=gbk"%>
<html>
<form action = "Cookie3.jsp" method="post">
用户名:<input type = "text" name = "uname"><br>
密码:<input type = "password" name = "upass"><br>
保存密码:<input type = "checkbox" name = "save"><br>
<input type = "submit" name = "Submit" value = "提交">
</form>