会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
代码改变世界
Cnblogs
Dashboard
Login
Home
Contact
Gallery
Subscribe
RSS
Manfred's Blog
Share the concern of the things that interested.
随笔档案-2010年10月31日
session保存登录
2010-10-31 11:57 by elivsit, 1446 阅读,
收藏
,
摘要: 代码很简单:if (bResult == true) //登录的用户名和密码正确 { //保存登录的用户名 Session["LoginUser"] = FormatString.Replace(txtLoginUser.Text); //这里就是给session赋值了.我对登录用户进行了一些安全处理 //转到管理首页 Response.Redirect("Admin_Index.Aspx"); ...
阅读全文
0 Comment
About