Reply to Re: Passing a variable between pages or scripts

Your name:

Reply:


Posted by J.O. Aho on 11/14/06 17:25

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация