[Javascript] Passing variables from one page to another

tedd tedd at sperling.com
Thu Dec 28 08:17:51 CST 2006


At 1:42 PM -0500 12/27/06, Matt Warden wrote:
>On 12/27/06, tedd <tedd at sperling.com> wrote:
>>There are several ways that I can pass variables between pages in
>>php, such as to use sessions or cookies, but those are required
>>because the operations are server-side and thus stateless.
>
>There is nothing about server-side that makes it stateless. The
>interaction between client and server is what is stateless, thus
>things are stateless from the perspective of the client as well (it
>must maintain state itself).

My apology for sloppy wording -- I think you knew what I meant.

The "operation" I'm addressing here is going from page to page (i.e., 
interaction between client and server) which on the server-side is 
stateless. I understand the server-side has to deal with different 
requests coming from many different users at nearly the same time and 
as such, it has to be stateless.

However, but I never considered client-side stateless because it's 
client-side (I realize that I'm wrong, but just don't know why).

I thought that javascript being client-side and having to deal with 
only one user might be different. After all, it is only one user 
using one browser running javascript, right?

So, where's the problem with javascript keeping variables alive between pages?

Thanks in advance for the upcoming education.

tedd
-- 
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com



More information about the Javascript mailing list