在asp.net中读取cookie值 [英] Reading cookie values in asp.net

查看:134
本文介绍了在asp.net中读取cookie值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨Techies,

我可以读取"/"路径中的所有cookie.但是无法获取其他路径"/retrieve/"的cookie.

Request.ServerVariables ["HTTP_COOKIE"]仅提供"/"路径中可用的cookie.但不是"/retrieve/"路径.

请帮助我通过.NET应用程序读取Cookie值.

问候,
Vijay Kumar E,

Hi Techies,

I could able to read all the cookies available at "/" path. But could not get the cookie of other path "/retrieve/".

Request.ServerVariables["HTTP_COOKIE"] gives only the cookies available at "/" path. but not "/retrieve/" path.

Please help me in reading the cookie value through .NET application.

Regards,
Vijay Kumar E,

推荐答案

使用HttpCookie对象在asp.net中读写cookie
Use HttpCookie Object for Reading and Writing cookies in asp.net


这篇关于在asp.net中读取cookie值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆