PDA

View Full Version : Form variables:- Session variables vs. HTTP


ben bookey
09-16-2002, 04:34 PM
Dear List,

Here is a good Question I think.

I have developed an asp site application which does not use session variables, but uses the URL to pass values from frames to other frames. This makes my customer very happy because his archaic administrator doesnt allow cookies thru.

However, i am worried. Does passing variables using HTTP have problems, and specifically do Web Proxies cause problems, like I have read on the actual registration page of this very useful site, and if so, how does it cause problems ?

I have pasted my example of passing a value via a URL with Jscript.

regards

Ben

'==============================================
an example of passing a value via url using Jscript,

function func_print()
{
var jsobjNewWindow;
jsobjNewWindow=open("print.asp?JPG=" + CurrentJPG + "&type=print","PrintWindow","toolbar=no,menubar=yes,width=500,height=900");
}

raf
09-17-2002, 12:44 PM
well, I 'm not a real expert on this buth nobody else seems to have an opinion ...

passing data along via the querystring has a few disadvantages :
- your user sees the data (unless you omit the address-bar from the window)
- the lenght of the querystring is limited (don't know exactly how many caracters, buth it's limited)
- it's a sort of weak chain : modify the screenflow and the chain might be broken.

I only use the get-methode (passing data via the querystring) in dynamically generated pages (classic example : building a list of customers where you can select by clicking on them.) and only over 1 or 2 pages.