提出Request.Cookies和Response.Cookies是否有任何理由使用其他方法来使用cookie? [英] Give Request.Cookies and Response.Cookies is there any reason to use another method to use cookies?

查看:46
本文介绍了提出Request.Cookies和Response.Cookies是否有任何理由使用其他方法来使用cookie?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

鉴于asp.net中的Request.Cookies和Response.Cookies有没有理由使用javascript或任何其他方法来使用cookie?


谢谢

Given Request.Cookies and Response.Cookies in asp.net is there any reason to
ever use javascript or any other method to use cookies?

Thanks

推荐答案

例如:如果你想保存ajax页面的布局。

" _Who" < Ca ********** @roadrunner.comD'è????¢

新闻:ey ************* @ TK2MSFTNGP02 .phx.gbl ...
eg :if you want to save the layout of the ajax page.
"_Who" <Ca**********@roadrunner.comD′è????¢
news:ey*************@TK2MSFTNGP02.phx.gbl...

在asp.net中给出Request.Cookies和Response.Cookies是否有任何理由

永远使用javascript或任何其他方式使用cookies?


谢谢

Given Request.Cookies and Response.Cookies in asp.net is there any reason
to ever use javascript or any other method to use cookies?

Thanks


例如,如果你有设置客户端...不确定这个问题的目标是什么?b $ b但是这个问题? IMO在大多数情况下你会使用服务器端代码,如果你想要的是确认你所做的是非常标准的......


- -

Patrice


" _Who" < Ca ********** @roadrunner.comaécritdansle message de groupe de

讨论: ey ************* @ TK2MSFTNGP02.phx.gbl ...
For example if you have to set them client side... Not sure what is the goal
of this question though ? IMO in most cases you''ll use server side code if
what you want is a confirmation that what you does is quite standard...

--
Patrice

"_Who" <Ca**********@roadrunner.coma écrit dans le message de groupe de
discussion : ey*************@TK2MSFTNGP02.phx.gbl...

在asp.net中给出Request.Cookies和Response.Cookies是否有任何理由

使用javascript或任何其他方法来使用cookie?


谢谢

Given Request.Cookies and Response.Cookies in asp.net is there any reason
to ever use javascript or any other method to use cookies?

Thanks


互联网和书籍中有很多JavaScript cookie代码,

展示如何写,读和拆分读的内容。

我有一些保存。我想知道我是否有任何理由要保存

那个。


另外,我一个人工作所以听到这个是很有价值的/>
Request.Cookies和Response.Cookies是一个很好的方法,不能承受所有

使用document.cookie的代码。


它'令人困惑的。例如你的陈述:例如,如果你必须设置

他们客户端......

有什么理由这样做吗?


事实上,我正在查看一个75行代码,用于显示该人访问该站点的

次数。它使用document.cookie和JavaScript。

你的方式是什么?


感谢您帮助

" Patrice" < http://www.chez.com/scribe/wrote in message

news:0A ********************** ************ @ microsof t.com ...
There is much JavaScript cookie code on the Internet and in books, that
shows how to write, read, and take apart what is read.
I have some saved. I was wondering if there is any reason for me to save
that.

Also, I work alone so it would be valuable to hear that using
Request.Cookies and Response.Cookies is a good approach not withstanding all
the code that uses document.cookie.

It''s confusing. For example your statement: "For example if you have to set
them client side... "
Is there some reason to do that?

In fact, I''m looking at a 75-line code that is used to display the number of
visits by the person to the site. It uses document.cookie and JavaScript. Is
that the way you''d do it?

Thanks for helping
"Patrice" <http://www.chez.com/scribe/wrote in message
news:0A**********************************@microsof t.com...

例如,如果你必须设置它们客户端...不确定这个问题的目标是什么? IMO在大多数情况下你会使用服务器端

代码,如果你想要的是确认你所做的是相当的

标准......
< br $>
-

Patrice


" _Who" < Ca ********** @roadrunner.comaécritdansle message de groupe de

讨论: ey ************* @ TK2MSFTNGP02.phx.gbl ...
For example if you have to set them client side... Not sure what is the
goal of this question though ? IMO in most cases you''ll use server side
code if what you want is a confirmation that what you does is quite
standard...

--
Patrice

"_Who" <Ca**********@roadrunner.coma écrit dans le message de groupe de
discussion : ey*************@TK2MSFTNGP02.phx.gbl...

>在asp.net中给出Request.Cookies和Response.Cookies是否有任何理由使用javascript或任何其他方法来使用cookie?

谢谢

>Given Request.Cookies and Response.Cookies in asp.net is there any reason
to ever use javascript or any other method to use cookies?

Thanks



这篇关于提出Request.Cookies和Response.Cookies是否有任何理由使用其他方法来使用cookie?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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