473,385 Members | 1,769 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,385 software developers and data experts.

passing state

hi,
how can i pass state for each user through pages without using
session,cookies,hidden form fields,querystring or database, which knowledge
base article 175167 refers? i don't want to build a form with hidden fields
and get it posted on the client. it seems possible using server variables,
response.addheader method, but how can i use it?
thanks
Jul 19 '05 #1
6 1468
You pretty much named all the ways to carry things from page to page. Why
are you opposed to all of them?

Ray at work

"Mark" <ma**@extensible.com> wrote in message
news:ex**************@TK2MSFTNGP09.phx.gbl...
hi,
how can i pass state for each user through pages without using
session,cookies,hidden form fields,querystring or database, which knowledge base article 175167 refers? i don't want to build a form with hidden fields and get it posted on the client. it seems possible using server variables,
response.addheader method, but how can i use it?
thanks

Jul 19 '05 #2
i think, form posting is an awkward approach, if you don't have cookies
sessions won't work, querystring reveals everything about your application
and it seems also awkward and amateurish to me that users may trick the
application by manipulating the querystring, and database approach is the
arduous way for me because i just want to pass state from page to page thus
it will be cumbersome and unneccessary to maintain a database just for this
purpose. i am wondering if its possible by using http headers?
thanks

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:uv**************@tk2msftngp13.phx.gbl...
You pretty much named all the ways to carry things from page to page. Why
are you opposed to all of them?

Jul 19 '05 #3
Those approaches aren't necessarily awkward. Poor implementations of them
may be....

You could always write your own app with ISAPI if you're really a purist !
"Mark" <ma**@extensible.com> wrote in message
news:ez**************@TK2MSFTNGP12.phx.gbl...
i think, form posting is an awkward approach, if you don't have cookies
sessions won't work, querystring reveals everything about your application
and it seems also awkward and amateurish to me that users may trick the
application by manipulating the querystring, and database approach is the
arduous way for me because i just want to pass state from page to page thus it will be cumbersome and unneccessary to maintain a database just for this purpose. i am wondering if its possible by using http headers?
thanks

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:uv**************@tk2msftngp13.phx.gbl...
You pretty much named all the ways to carry things from page to page. Why are you opposed to all of them?


Jul 19 '05 #4
"Mark" <ma**@extensible.com> wrote:
i think, form posting is an awkward approach, if you don't have cookies
sessions won't work, querystring reveals everything about your application
and it seems also awkward and amateurish to me that users may trick the
application by manipulating the querystring, and database approach is the
arduous way for me because i just want to pass state from page to page thus
it will be cumbersome and unneccessary to maintain a database just for this
purpose. i am wondering if its possible by using http headers?


How do you think cookies are implemented? The web server and client
use a special header to pass the cookie values back and forth. So
looking for some other header solution isn't buying you anything at
all.

--
Tim Slattery
MS MVP(DTS)
Sl********@bls.gov
Jul 19 '05 #5
"Mark" wrote:

i think, form posting is an awkward approach, if you don't have
cookies sessions won't work, querystring reveals everything about
your application and it seems also awkward and amateurish to me that
users may trick the application by manipulating the querystring, and
database approach is the arduous way for me because i just want to
pass state from page to page thus it will be cumbersome and
unneccessary to maintain a database just for this purpose. i am
wondering if its possible by using http headers?


Absolutely. Cookies and forms (method:POST) use http headers. Otherwise, no.
I see nothing wrong with requiring users to have cookies enabled -- session
cookies at the very least -- in order to do something more than casual
browsing.

As for manipulating the querystring, the DB approach allows you to abstract
the QS data from the state information you are passing around. Consider what
Amazon does to the following URL when you follow this link (for possibly the
most useless thing ever conceived):
http://www.amazon.com/exec/obidos/tg.../-/B00009XFX4/

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 19 '05 #6

Agreed ... I have to say that I have seen MANY cases where people
think that sessions should be used instead of cookies ... only reason
being that they can turn cookies off...

How many of these users that are turning there cookies off are going
to click that little box to allow something called "Session Cookies"
to stay on ... they don't know what those are ... so if it isn't a
security issue, go a step further and use cookies instead of sessions.

Mostly on topic ... just a gripe. I have cleaned up projects that have
used sessions with shopping carts and destroyed their performance ...
anyway ... done with my rant.

Forms can be hard to use ... they assume, a little too much, that the
user is going to browse forward through the website ... I have used
this technique, but not for long trips ... especially not site long
trips.

Brynn
www.coolpier.com

There is also always using an encrypted querystring ... but I would
still rather have my screen popup that says "Error: Cookies must be on
for this feature to work."


On Tue, 13 Jan 2004 12:25:11 -0500, Tim Slattery <Sl********@bls.gov>
wrote:
"Mark" <ma**@extensible.com> wrote:
i think, form posting is an awkward approach, if you don't have cookies
sessions won't work, querystring reveals everything about your application
and it seems also awkward and amateurish to me that users may trick the
application by manipulating the querystring, and database approach is the
arduous way for me because i just want to pass state from page to page thus
it will be cumbersome and unneccessary to maintain a database just for this
purpose. i am wondering if its possible by using http headers?


How do you think cookies are implemented? The web server and client
use a special header to pass the cookie values back and forth. So
looking for some other header solution isn't buying you anything at
all.

--
Tim Slattery
MS MVP(DTS)
Sl********@bls.gov


I participate in the group to help give examples of code. I do not guarantee the effects of any code posted. Test all code before use!

Brynn
www.coolpier.com
Jul 19 '05 #7

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

Similar topics

58
by: jr | last post by:
Sorry for this very dumb question, but I've clearly got a long way to go! Can someone please help me pass an array into a function. Here's a starting point. void TheMainFunc() { // Body of...
8
by: kalinga1234 | last post by:
there is a problem regarding passing array of characters to another function(without using structures,pointer etc,).can anybody help me to solve the problem.
2
by: Curtis Justus | last post by:
Hi, I currently have a control that is on a form and I want to pass that exact instance of the control to another form (a child form that appears on a button click). The control has state,...
11
by: Arsen Vladimirskiy | last post by:
Hello, If I have a few simple classes to represent Entities such as Customers and Orders. What is the proper way to pass information to the Data Access Layer? 1) Pass the actual ENTITY to...
8
by: Johnny | last post by:
I'm a rookie at C# and OO so please don't laugh! I have a form (fclsTaxCalculator) that contains a text box (tboxZipCode) containing a zip code. The user can enter a zip code in the text box and...
11
by: John Pass | last post by:
Hi, In the attached example, I do understand that the references are not changed if an array is passed by Val. What I do not understand is the result of line 99 (If one can find this by line...
61
by: academic | last post by:
When I declare a reference variable I initialize it to Nothing. Now I'm wondering if that best for String variables - is "" better? With Nothing I assume no memory is set aside nor GC'ed But...
1
by: Neo | last post by:
hi, This is my first post in C++ group, so please be nice to me. Thanks. Also, I will post my first C++ program following. There is a compile error, I cannot figure it out even I can fix it. And...
4
by: Deckarep | last post by:
Hello fellow C# programmers, This question is more about general practice and convention so here goes: I got into a discussion with a co-worker who insisted that as a general practice all...
1
Chrisjc
by: Chrisjc | last post by:
First off here is the link to my page Link to page I am having an issue passing the "State" value to "dealerlocater.php" page that I have created, I have my index.php which will pull from my...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.