111,125
社区成员
发帖
与我相关
我的任务
分享 public void Login(string Input, string Pwd)
{
Db.Dg<object> rv = Db.Rv,
scalar = Db.Scalar;
Db.Dg<object[]> reader = this.reader;
object[] ps = {
new object[] { "Exist", rv,Input },
new object[] {"Salt",scalar},
new object[] {Input,Pwd}
};
object[] Rd = Db.Exec<object[]>("Logon", reader, Ps: ps);
System.Web.SessionState.HttpSessionState session = HttpContext.Current.Session;
session.Add("rid", Rd[2]);
session.Timeout = 60;
string s = "window.location.assign(window.location);Cb({Uid:" + Rd[0] + ",Email:\"" + Rd[1] + "\",Rid:" + HttpContext.Current.Session["rid"] + "})";
HttpContext.Current.Response.Write(s);
//HttpContext.Current.Server.Transfer(session["urlReferrer"].ToString());想跳转回调前一个页,那个页的url存在session["urlReferrer"]中
}