问题描述
刚开始学习看不懂这个网站登录逻辑求指点http://xk.open.edu.cn/FES3不知道下面这些Cookie的获取和作用Hm_lpvt_4a4f14e2ca69820c68adf13fb982a54a1428840745Hm_lpvt_f1847c0dec98a98339b3f5f4ca8912741428840744Hm_lvt_4a4f14e2ca69820c68adf13fb982a54a1428840745Hm_lvt_f1847c0dec98a98339b3f5f4ca8912741428840744b_t_st228840744587xb_t_s_1003047d304740-d51a-408c-80d1-ed1a11729ae2up_beacon_id_1003047d304740-d51a-408c-80d1-ed1a11729ae2-1428840745126Nup_beacon_vist_count_100304up_first_date2015-04-12up_page_stime_1003041428840745110
解决方案
本帖最后由 chee1 于 2015-04-12 20:36:14 编辑
解决方案二:
C#实现一个网站模拟登陆设置Cookie记忆密码功能protectedvoidButton1_Click(objectsender,EventArgse){if(txtname.Text.Trim().Equals("mr")&&txtpwd.Text.Trim().Equals("mrsoft")){Session["username"]=txtname.Text.Trim();if(ckbauto.Checked){if(Request.Cookies["username"]==null){Response.Cookies["username"].Expires=DateTime.Now.AddDays(30);Response.Cookies["userpwd"].Expires=DateTime.Now.AddDays(30);Response.Cookies["username"].Value=txtname.Text.Trim();Response.Cookies["userpwd"].Value=txtpwd.Text.Trim();}}//codego.net/Response.Redirect("admin.aspx");}else{ClientScript.RegisterStartupScript(this.GetType(),"","alert('用户名或密码错误!');",true);}}