之间有什么HttpContext.Current.Request和HttpContext.Current.Response的区别 [英] What is the difference between HttpContext.Current.Request AND HttpContext.Current.Response
本文介绍了之间有什么HttpContext.Current.Request和HttpContext.Current.Response的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在问一个cookie为什么它在它来自事项?请求或响应...
心不是:
When asking a cookie why does it matters in where does it comes from? Request or Response... isnt:
HttpContext.Current.Request.Cookies.Get(LangKey).value的
结果
而结果 HttpContext.Current.Response.Cookies.Get(LangKey).value的
假设是一样的吗?
推荐答案
要求具有客户端的当前的cookie。响应用于设置cookie浏览器侧
Request has the current cookie of the client. Response is used to set the cookie browser side.
这篇关于之间有什么HttpContext.Current.Request和HttpContext.Current.Response的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文