日期:2014-05-18 浏览次数:20420 次
try { SqlDataReader dr = cmd.ExecuteReader(CommandBehavior.SingleRow); if (dr.Read()) { _logonUserEmail = arg.loginUseremail; string tmp2 = dr[0].ToString(); if (HttpContext.Current.Session["user"]!=null) HttpContext.Current.Session["user"] = tmp2; return 1; } else { return -1; } }
<globalization fileEncoding='gb2312' requestEncoding='gb2312' responseEncoding='gb2312' /> <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" />