function saveUserInfo(){
if($("#remember").attr('checked')=="checked"){
var userName=$("#loginname").val();
var passWord=$("#password").val();
var b=new Base64();
var name=b.encode(userName);
var pass=b.encode(passWord);
SetCookie("rmbUser","true");
SetCookie("userName",name);
SetCookie("passWord",pass);
}else{
SetCookie("rmbUser","false");
SetCookie("userName",' ');
SetCookie("password",' ');
}
}
base64是一个base64.js加密文件,传到后台的时候以加密形式的字符串,并且附带秘钥。md5