存取cookies
2024-10-07 14:26:34
保存:
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(); ;
最新文章
- SSH框架整合(XML)
- linux源码分析(四)-start_kernel-cgroup
- 对vector<;int>;进行快速排序
- Javascript实现计数器,定时警告和停止
- js控制固定div和随屏滚动div兼容多浏览器和纯css控制(来自网络)
- 使用git和github托管个人项目
- jQuery基本知识体系图
- 获取IP城市
- K - Rochambeau - poj2912(类似食物链)
- php不会的点
- 更改linux系统提示信息
- TextView赋值int型,并显示
- elastaticresearch 学习过程
- Babel学习小记
- 再看ExpressionTree,Emit,反射创建对象性能对比
- nginx比apache处理静态文件速度快,但是nginx处理大量并发的php请求时,容易出现502错误,频率大概是多少
- Vue -- 双向过滤器去除html标签
- wireshark实战之局域网抓包分析
- lsof and dynamic array in bash/shell
- 【BZOJ】3144: [Hnoi2013]切糕
热门文章
- MongoDB数据库-基础篇
- JS 自定义样式格式化日期
- CAS无锁策略
- C# 生成word文档(NPOI.XWPF)
- Python- 【python无法更新pip】提示python.exe: No module named pip
- [SCOI2010]股票交易(单调队列优化dp)
- Sass函数:数字函数-min()函数、max()函数
- HTML基础:用表单写一个简易登录页面
- ltp-ddt nand_mtd_dd_rw_jffs2
- Synchronized和ReentranLock的比较