写如ini文件,下次登陆的时候在读出来

解决方案 »

  1.   

    登录时检查 Cookie ,如果没有以前保存的用户名,则保存此次成功登录的用户名;否则,将 Cookie 中保存的用户名直接填入文本框。
      

  2.   

    把他记在Cookie之中,并设置Cookie的有效期
      

  3.   

    如果你用的是FORMS验证,这很容易:
    FormsAuthentication.RedirectFromLoginPage("用户名", PersistCookie.Checked);
    在程序里调用
    string MyUserName=this.Context.User.Identity.Name; // OK
      

  4.   

    登录时检查 Cookie if cookie 存在 then
      show "登陆对话框"
    else
    登陆对话框.visible=false
    直接用COOKIE中的用户信息登陆index.aspx
    end if
      

  5.   

    Session肯定不行!
    Cookies或记入文件都可以!
    Response.Cookies["user"]["name"] = ....;
      

  6.   

    Cookies会遇到客户段禁止的问题!!
    而Session虽然有缺点,却不受客户段限制,时间有效性反而可以做为安全性考虑!
    我们不能要求客户因该做什么!
      

  7.   

    cookies    如果客户端禁止的话那也没办法
    session  不可行,时间限制,如果设置时间太大那么服务器端耗费太大
      

  8.   

    Cookies禁止就没办法了,不过那样的客户很少
      

  9.   

    登陆时生成ini文件,退出时删除该文件即可!
      

  10.   

    cookies很好海阔天空:
      可不可以具体说说,如何实现啊?生成ini?
      

  11.   

    of course use cookies,and every user and his password use one cookie save it.when the user log on next,then use cookies compare to his username and password.
      

  12.   

    我想要实现的应该是用COOKIE来解决。我需要的是wangrui821(phoenix)所说的效果,wangrui821(phoenix)能讲讲具体如何实现吗?用什么类,给几句代码——