//启动Timer this.Timer1.Enabled = true;
//首次登录,您可以做您想做的工作了。 Label1.Text = "你好!" + sName + "欢迎光临"; } else { //在Cache中发现该用户的记录,表示已经登录过,禁止再次登录 Label1.Text = "对不起,你的用户身份已登陆"; return; } } catch (System.Exception ex) { Label1.Text = ex.Message; } } protected void Button2_Click(object sender, EventArgs e) { //用户名 string sName = TextBox1.Text;
//生成Key string sKey = sName + "_Login";
//为了测试方便,设置了这个从Cache中移出登陆信息的方法
上一篇:让你的ADSL不再自动掉线
下一篇:c# MD5加密算法的实例
|