Re: Passing a variable between pages or scripts



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
.



Relevant Pages

  • Re: Large array stored in session variable causes server to choke
    ... the data to a local array. ... if I try to assign that array to a session variable it chokes. ... This happens on my windows server as well as fedoracore4 ...
    (comp.lang.php)
  • Re: RWW Timing
    ... I understand that you want to monitor when and how ... > to an internal Windows XP or Terminal Server computer. ... SBS creates a connection to the internal client on port 3389 which is ... But it can not tell which one session from the RWW, ...
    (microsoft.public.windows.server.sbs)
  • Re: Emulator Sessions Hung
    ... Communications Server TN3270E server - albeit somewhat indirectly! ... VTAM has no part in the sending of this Unformatted ... CONCT to ACTIV status and, logically, an SSCP-LU session will now exist. ... One hopes that at some time later CICS will become fully initialised and will ...
    (bit.listserv.ibm-main)
  • Re: Emulator Sessions Hung
    ... the LOGAPPL operand to be "fired off" by VTAM, ... session is in place, ... System" of the z/OS Communications Server SNA Programming manual ... least one successful case of communication with both the PCs. ...
    (bit.listserv.ibm-main)
  • Re: Restricting TS USers
    ... MCSE, CCEA, Microsoft MVP - Terminal Server ... Terminal Services and Microsoft Windows Server 2003 Service Pack ... the remote session does not end immediately. ...
    (microsoft.public.windows.terminal_services)