携带没有cookie或会话的表单值。 [英] Carrying form values without cookies or sessions.

查看:79
本文介绍了携带没有cookie或会话的表单值。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


是否可以将表格值从PAGE1发送到PAGE2,然后保留PAGE3的

表格信息,而不使用Cookie,会话还是DB存储?另外,我

不想使用隐藏的表单字段将page2重新发布到page3。


好​​奇!想知道如何简单地即使在

浏览器上将安全和隐私控制设置为MAXIMUM,也可以在网站上维护用户表单输入。我知道使用数据库会做到这一点,但我很想找到一个更简单的解决方案。


加里。

Hello,

Is it possible to send form values from PAGE1 to PAGE2, and then retain the
form info for PAGE3 without using cookies, sessions or DB storage? Also, I
dont want to repost page2 to page3 using hidden form fields.

Just curious! Want to know how to "simply" maintain user form inputs across
a web site even when security and privacy controls are set to MAXIMUM on the
browser. I know using databases would do it, but I would love to find a
simpler solution.

Gary.

推荐答案

你需要一些方法来维持状态。 HTTP是一种无状态机制。


所以你需要:

a)使用某种隐藏的页面存储

b)使用浏览器的某种功能(例如cookie)

c)使用服务器的某种存储功能(例如数据库或ASP

会话)。但是,您仍然存在将

存储数据与用户的下一个请求相关联的问题。甚至ASP Sessions依赖于

浏览器接受包含Session的ID

值的ASPSessionID cookie。这需要在下一个请求时返回,因此IIS可以将浏览器与现有会话关联起来。


干杯

Ken


" G" <无********** @ here.com>在留言中写道

news:c3 ******************* @ news.demon.co.uk ...

:您好,



:是否可以将表格值从PAGE1发送到PAGE2,然后保留



:PAGE3的表单信息,不使用cookie,会话或数据库存储?另外,



:不想使用隐藏的表单字段将page2重新发布到page3。



:只是好奇!想知道如何简单地维护用户表格输入

跨越

:一个网站,即使安全和隐私控制设置为MAXIMUM



:浏览器。我知道使用数据库会这样做,但我很想找到一个

:更简单的解决方案。



:Gary。




You need some way to maintain state. HTTP is a stateless mechanism.

so you need to either:
a) use some kind of hidden page storage
b) use some kind of capability of the browser (eg cookies)
c) use some kind of storage capability of the server (eg a database, or ASP
sessions). However, you are stil stuck with the problem of associating the
stored data with the user''s next request. Even ASP Sessions rely on the
browser accepting an ASPSessionID cookie that contains the Session''s ID
value. This needs to be returned on the next request, so IIS can associate
the browser with their existing session.

Cheers
Ken

"G" <no**********@here.com> wrote in message
news:c3*******************@news.demon.co.uk...
: Hello,
:
: Is it possible to send form values from PAGE1 to PAGE2, and then retain
the
: form info for PAGE3 without using cookies, sessions or DB storage? Also,
I
: dont want to repost page2 to page3 using hidden form fields.
:
: Just curious! Want to know how to "simply" maintain user form inputs
across
: a web site even when security and privacy controls are set to MAXIMUM on
the
: browser. I know using databases would do it, but I would love to find a
: simpler solution.
:
: Gary.
:
:


>所以你需要:
a)使用某种隐藏的页面存储
b)使用某种浏览器的功能(例如cookies)
c)使用某种服务器的存储能力(例如数据库,或
ASP会话)。但是,您仍然存在将存储的数据与用户的下一个请求相关联的问题。甚至ASP Sessions依赖于
浏览器接受包含Session的ID
值的ASPSessionID cookie。这需要在下一个请求时返回,因此IIS可以将浏览器与其现有会话相关联。
a) use some kind of hidden page storage
b) use some kind of capability of the browser (eg cookies)
c) use some kind of storage capability of the server (eg a database, or ASP sessions). However, you are stil stuck with the problem of associating the
stored data with the user''s next request. Even ASP Sessions rely on the
browser accepting an ASPSessionID cookie that contains the Session''s ID
value. This needs to be returned on the next request, so IIS can associate
the browser with their existing session.



那么,不是吗? :)


So, No? :)





我认为该网站应该非常安全。 />
您是否可以使用查询字符串,将URL中的值从页面传递到

页面?

或者这不是您要找的?


我建议你看看实现另一个解决方案(而不是ASP)如果

你需要这个功能,因为Ken在ASP中说明了这一点。 (请看一下

看看Coldfusion,有一些非常有用的标签,允许这种

安全和表格维护)


希望这有帮助


-


Fawke


请删除ANTI和SPAM

www。 bradflack.com

" G" <无********** @ here.com>在留言中写道

news:c3 ******************* @ news.demon.co.uk ...
Hi,

I take it that the site is supposed to be pretty secure.
Could you not use a querystring, passing the values in the URL from page to
page?
Or is this not what you were looking for?

I suggest you look at implementing another solution (as opposed to ASP) if
you require this functionality, as Ken stated the points in ASP. (take a
look at Coldfusion, there are some very useful tags that allow this kind of
security and form maintenance)

Hope this helps

--

Fawke

Please remove ANTI and SPAM
from my email address before emailing me.

www.bradflack.com
"G" <no**********@here.com> wrote in message
news:c3*******************@news.demon.co.uk...
所以你需要:
a)使用某种隐藏页面存储
b)使用浏览器的某种功能(例如cookies)
c)使用服务器的某种存储功能(例如数据库,或
so you need to either:
a) use some kind of hidden page storage
b) use some kind of capability of the browser (eg cookies)
c) use some kind of storage capability of the server (eg a database, or


ASP


ASP

会话)。但是,您仍然存在将存储数据与
关联的问题与用户的下一个请求相关联。甚至ASP Sessions依赖于
浏览器接受包含Session的ID
值的ASPSessionID cookie。这需要在下一个请求中返回,因此IIS可以
将浏览器与其现有会话相关联。
sessions). However, you are stil stuck with the problem of associating the stored data with the user''s next request. Even ASP Sessions rely on the
browser accepting an ASPSessionID cookie that contains the Session''s ID
value. This needs to be returned on the next request, so IIS can associate the browser with their existing session.



那么,不是吗? :)


So, No? :)



这篇关于携带没有cookie或会话的表单值。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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