Click to See Complete Forum and Search --> : passing information from one page to another
scottr
Jul 26th, 2000, 05:19 PM
Hi in my web application we are asking users for some informaiton on page 1 then directing them to page 2 then page 3 then on page 4 all the information is being loaded into a database. Right now everything is in session variables but we are afraid of overloading the server and of other performance issues. We were thinking of having hidden text fields and doing a request.form("field") from the pervious page and so on. BUt by the last page there would be about 50-60 hidden fields loaded with data, is this effeicent, what are other ways to pass information along form one page to another, any tips would be appreciated. We cant use the querry string because the information is sensitve and because it would be more then 255 characters.
Regards,
Scott
icccy
Jul 26th, 2000, 08:59 PM
I think - and I may say I'm sure - that you have all
existing solutions in your hands. The only two ways of
keeping trace of an user and some informations with him is
by using cookies (by the way, all information put with
"session" in stored in a cookie) or web forms.
In any case, information sent to the server will entirely be
sent back (with or by a web page). So there's not so much
difference between them. What will now make the difference
is the way this data is sent to the client.
You will then understand that the best way is by using the
actual "session", as you won't have to put the data in
pages (using response.write or something else) again and
again ... I wish it'll help.
Icccy
compuGEEK
Jul 27th, 2000, 05:04 PM
I've used both session variables and the URL querystring.
If you do use session variables, make sure you use
session.abandon right after you've used the
variables and are done with them. This will destroy the
objects in the session variables and also, it realeases
their resources.
You could also use the querystring and then encrypt the URL.
[Edited by compuGEEK on 07-31-2000 at 01:22 PM]
scottr
Jul 29th, 2000, 01:38 PM
Thanks for all the ideas, ended up passing the information by posting into hidden text fields on the next page, until the informaiton is used in the last page.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.