Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Passing variables from one page to another


  • From: tedd at sperling.com (tedd)
  • Subject: [Javascript] Passing variables from one page to another
  • Date: Thu Dec 28 08:18:04 2006

At 1:42 PM -0500 12/27/06, Matt Warden wrote:
>On 12/27/06, tedd <tedd@xxxxxxxxxxxx> 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