473,408 Members | 2,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Carrying form values without cookies or sessions.

G
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.
Jul 19 '05 #1
13 1722
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.
:
:
Jul 19 '05 #2
G
> 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.

So, No? :)

Jul 19 '05 #3
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...
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.

So, No? :)

Jul 19 '05 #4
Since you have eliminated most forms of doing this, the Hidden Form Fields
is about the only ASP method you have left yourself.
--

Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com
"G" <no**********@here.com> wrote in message
news:c3*******************@news.demon.co.uk...
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.

So, No? :)

Jul 19 '05 #5
Nevermind,..I see you've eliminated those as well.
--

Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com
"Phillip Windell" <@.> wrote in message
news:#5**************@TK2MSFTNGP11.phx.gbl...
Since you have eliminated most forms of doing this, the Hidden Form Fields
is about the only ASP method you have left yourself.
--

Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com
"G" <no**********@here.com> wrote in message
news:c3*******************@news.demon.co.uk...
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.

So, No? :)


Jul 19 '05 #6
G

"Phillip Windell" <@.> wrote in message
news:eF**************@TK2MSFTNGP11.phx.gbl...
Nevermind,..I see you've eliminated those as well.


lol ;)
Just wanted to see if there was another way, thought I would eliminate all
the methods I knew of and see which clever boffin could come up with
another...

G.
Jul 19 '05 #7
"G" <no**********@here.com> wrote in message
news:c3*******************@news.demon.co.uk...

"Phillip Windell" <@.> wrote in message
news:eF**************@TK2MSFTNGP11.phx.gbl...
Nevermind,..I see you've eliminated those as well.
lol ;)
Just wanted to see if there was another way, thought I would eliminate

all the methods I knew of and see which clever boffin could come up with
another...

G.


You didn't disclude the Application scope. So, you could generate a GUID
(globally unique identifier) and store an XML representation of the
state in the Application scope under that GUID. Then pass around the
GUID in the action attribute of your forms.

-Chris Hohmann
Jul 19 '05 #8
1. Server.Transfer
2. Using the Cache object. Put the values into the cache
Cache.Insert("<key",value)
3. Use inheritance as all ASPX pages are classes.

with regards,
J.V.Ravichandran
- http://www.geocities.com/
jvravichandran
- http://www.411asp.net/func/search?
qry=Ravichandran+J.V.&cob=aspnetpro
- http://www.southasianoutlook.com
- http://www.MSDNAA.Net
- http://www.csharphelp.com
- http://www.poetry.com/Publications/
display.asp?ID=P3966388&BN=999&PN=2
- Or, just search on "J.V.Ravichandran"
at http://www.Google.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #9
At some point though, you still need to send something to the client (and
have the client return it), so that the server can maintain session state.

In which case, you might as well use hidden form fields, or cookies, or one
of the other things mentioned.

Cheers
Ken

"Chris Hohmann" <no****@thankyou.com> wrote in message
news:Oh****************@TK2MSFTNGP11.phx.gbl...
: "G" <no**********@here.com> wrote in message
: news:c3*******************@news.demon.co.uk...
: >
: > "Phillip Windell" <@.> wrote in message
: > news:eF**************@TK2MSFTNGP11.phx.gbl...
: > > Nevermind,..I see you've eliminated those as well.
: >
: > lol ;)
: > Just wanted to see if there was another way, thought I would eliminate
: all
: > the methods I knew of and see which clever boffin could come up with
: > another...
: >
: > G.
:
: You didn't disclude the Application scope. So, you could generate a GUID
: (globally unique identifier) and store an XML representation of the
: state in the Application scope under that GUID. Then pass around the
: GUID in the action attribute of your forms.
:
: -Chris Hohmann
:
:
Jul 19 '05 #10
"Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
news:u4**************@TK2MSFTNGP11.phx.gbl...
At some point though, you still need to send something to the client (and have the client return it), so that the server can maintain session state.
In which case, you might as well use hidden form fields, or cookies, or one of the other things mentioned.


The OP indicated that he did not want to use hidden form fields,
cookies, sessions or DB. The scenario I proposed uses none of these. The
GUID associated with the state is passed via the form's action
attribute. I am not endorsing this methodology, I am simply offering up
a solution that meets the OP's requirements.

-Chris Hohmann
Jul 19 '05 #11
"G" wrote in message news:c3*******************@news.demon.co.uk...
: 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.

You can use FSO to write it to and read from a file on the server. This
doesn't use cookies, sessions or db storage. One would assume you do not
want text file storage either but eventually you will be out of options.
You will have to make sure you have CHANGE rights in the directory you're
storing the file and outside the web root is preferred.

HTH...

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #12

"Chris Hohmann" <no****@thankyou.com> wrote in message
news:e1**************@tk2msftngp13.phx.gbl...
: "Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
: news:u4**************@TK2MSFTNGP11.phx.gbl...
: > At some point though, you still need to send something to the client
: (and
: > have the client return it), so that the server can maintain session
: state.
: >
: > In which case, you might as well use hidden form fields, or cookies,
: or one
: > of the other things mentioned.
:
: The OP indicated that he did not want to use hidden form fields,
: cookies, sessions or DB. The scenario I proposed uses none of these. The
: GUID associated with the state is passed via the form's action
: attribute. I am not endorsing this methodology, I am simply offering up
: a solution that meets the OP's requirements.

So, you're passing it in the querystring. You could, I suppose, just pass
everything in the querystring - which was mentioned earlier.

Cheers
Ken
Jul 19 '05 #13
"Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
news:uP**************@tk2msftngp13.phx.gbl...

"Chris Hohmann" <no****@thankyou.com> wrote in message
news:e1**************@tk2msftngp13.phx.gbl...
: "Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
: news:u4**************@TK2MSFTNGP11.phx.gbl...
: > At some point though, you still need to send something to the client : (and
: > have the client return it), so that the server can maintain session : state.
: >
: > In which case, you might as well use hidden form fields, or cookies, : or one
: > of the other things mentioned.
:
: The OP indicated that he did not want to use hidden form fields,
: cookies, sessions or DB. The scenario I proposed uses none of these. The : GUID associated with the state is passed via the form's action
: attribute. I am not endorsing this methodology, I am simply offering up : a solution that meets the OP's requirements.

So, you're passing it in the querystring. You could, I suppose, just pass everything in the querystring - which was mentioned earlier.


There are limits to how much data can be passed via the querystring.

-Chris Hohmann
Jul 19 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ralph Freshour | last post by:
I was reading about PHP variable scoping - it doesn't seem to support carrying any variables from one web page to another - how is this usually done? I have a lot of php variables created on my...
3
by: Daniel Ruscoe | last post by:
Hi chaps, I'm relatively new to the language, but I want to create a simple order form using PHP and cookies. Please let me know if there's a better way in this situation, database isn't...
9
by: Dave Martin | last post by:
I've successfully used CURL to maneuver around and through sites but a new site I've been trying to work with has got me stumped. To retrieve the data I'm trying to get a login is required. If...
10
by: Terabyte | last post by:
I have a client that wants me to create a form that will contain about 50 condo listings. He wants me to place a restriction on the form as to the number of Condo listings a user can...
9
by: mosscliffe | last post by:
I am struggling to find a python example of the scenario - I have. I have a python script, which generates a page with a search button (actually an input field). The data from the above...
8
by: Chuck Anderson | last post by:
I've instituted a sessions based scheme on my web site to combat hot linking to my images. When someone requests a page at my site, I set a session variable. I then use htaccess to redirect *all*...
4
by: Kurrent | last post by:
I have some data from text fields that are being passed over through a form that I am displaying with the $_POST superglobal. Once i have echo'd out this data onto the next page, i'd like to...
3
by: Sylvie | last post by:
When redirecting a page, For example CASE 1; Response.Redirect("Page.aspx?Paramval=123"); in Page.aspx
18
by: Fester Bestertester | last post by:
Greetings, I'm an occasional php/mysql dabbler. I have a basic data form with a submit button. Unfortunately, it's still possible for the user to enter data changes and close the window,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.