Re: Passing a variable between pages or scripts
- From: "J.O. Aho" <user@xxxxxxxxxxx>
- Date: Tue, 14 Nov 2006 18:25:54 +0100
kenoli wrote:
Does anyone have experience using a shared memory block (the schmop
extension) for this?
I presume with "GET", each key=value pair needs to be sent
individually, which, for a large array would make the URL quite long.
Is there a limit for the length of a URL? It seems impractical to send
a very long one.
There shouldn't be a limitation on the size, http 1.1 should allow any size as long as the server manage that, otherwise you get an error message (nr 414?).
There are some old browsers that has trouble with the url length:
MSIE<3 url limit is 1k, MSIE3 2k
Seen mention of GET size limitations to 1024 - 2000, while POST should be safer for big sizes.
Regarding using sessions for this, I presume one can use a while or for
each loop to set the $_SESSION array. Another advantage of the session
option is that it creates a "sticky form" for the user.
session size is limited by the servers storage, but as soon as you have got the data to the server it's there, no matter if you have session or not, session is better for store data between scripts (switch from one page to another).
//Aho
.
- Follow-Ups:
- Re: Passing a variable between pages or scripts
- From: kenoli
- Re: Passing a variable between pages or scripts
- References:
- Passing a variable between pages or scripts
- From: kenoli
- Re: Passing a variable between pages or scripts
- From: wesley
- Re: Passing a variable between pages or scripts
- From: aaron . reese
- Re: Passing a variable between pages or scripts
- From: J.O. Aho
- Re: Passing a variable between pages or scripts
- From: kenoli
- Passing a variable between pages or scripts
- Prev by Date: Re: Passing a variable between pages or scripts
- Next by Date: Re: A query from $_POST using foreach
- Previous by thread: Re: Passing a variable between pages or scripts
- Next by thread: Re: Passing a variable between pages or scripts
- Index(es):
Relevant Pages
|