保存:
Response.Cookies["OpenID"].Value = wxobj.openid;
Response.Cookies["NickName"].Value = HttpUtility.UrlEncode(wxobj.nickname);
Response.Cookies["headimgurl"].Value = headimgurl;
 
取出 if (HttpContext.Current.Request.Cookies["NickName"] != null)
{
AcceptName = HttpUtility.UrlDecode(HttpContext.Current.Request.Cookies["NickName"].Value.ToString());
// AcceptName = HttpContext.Current.Request.Cookies["NickName"].Value.ToString();
}
if (HttpContext.Current.Request.Cookies["OpenID"] != null)
{
userName = HttpContext.Current.Request.Cookies["OpenID"].Value.ToString();
}
 
HttpContext.Current.Response.Cookies["u"]["p"] = phone;
string LoginName = HttpContext.Current.Request.Cookies["u"]["p"].ToString(); ;

最新文章

  1. SSH框架整合(XML)
  2. linux源码分析(四)-start_kernel-cgroup
  3. 对vector<int>进行快速排序
  4. Javascript实现计数器,定时警告和停止
  5. js控制固定div和随屏滚动div兼容多浏览器和纯css控制(来自网络)
  6. 使用git和github托管个人项目
  7. jQuery基本知识体系图
  8. 获取IP城市
  9. K - Rochambeau - poj2912(类似食物链)
  10. php不会的点
  11. 更改linux系统提示信息
  12. TextView赋值int型,并显示
  13. elastaticresearch 学习过程
  14. Babel学习小记
  15. 再看ExpressionTree,Emit,反射创建对象性能对比
  16. nginx比apache处理静态文件速度快,但是nginx处理大量并发的php请求时,容易出现502错误,频率大概是多少
  17. Vue -- 双向过滤器去除html标签
  18. wireshark实战之局域网抓包分析
  19. lsof and dynamic array in bash/shell
  20. 【BZOJ】3144: [Hnoi2013]切糕

热门文章

  1. MongoDB数据库-基础篇
  2. JS 自定义样式格式化日期
  3. CAS无锁策略
  4. C# 生成word文档(NPOI.XWPF)
  5. Python- 【python无法更新pip】提示python.exe: No module named pip
  6. [SCOI2010]股票交易(单调队列优化dp)
  7. Sass函数:数字函数-min()函数、max()函数
  8. HTML基础:用表单写一个简易登录页面
  9. ltp-ddt nand_mtd_dd_rw_jffs2
  10. Synchronized和ReentranLock的比较