ProjectedSurplus wrote:
> So, just to confirm, EVERY cookie.var is sent with every
browser request, right
> (ie not just when called/referenced)? As in a previous
post, I understand
> Flash/Flex enables shared objects stored on the client
which are not
> transmitted unless specified.
>
> Assuming there is no direct way to have similar
functionality in HTML, the
> next best way to do what I seek (which btw is not
involved with my intention to
> manage user state in a more forward Session var) is to
write a CLIENT var
> onSessionEnd and only read that info onSessionStart (or
when changed by the
> visitor).
>
>
>
Yes with standard HTTP, every cookie belonging to a domain is
included
with every request sent to that domain. That is just the way
they work.
I'm not sure that client is much of an option here. At least
it is no
different then the other plans under consideration. Because
with Client
variable you only have three choices on where you can store
the data.
In the system registry or some facsimile there of. And this
is a bad,
bad, bad thing to do. It is the default, because it is the
only choice
that can be guaranteed to work 'out of the box'. But is
generally
considered the worse choice and has the very real possibility
to fill
the registry with data and bring the entire server down. This
warning
is in the documentation which strongly recommends not using
this
solution on anything but the smallest application.
So that just leaves the other two choices, storing the client
data in
cookies, no different then any other cookies. Or a database,
no
different then any other database connection.
So you are still debating the pros and cons of storing this
data on the
clients machine and have it sent back and forth over the
network with
every request. Or in a database and have it read into memory
whenever
the user visits the site.
Flex w/ Flash works differently because it is not stateless.
The Flash
client opens and keeps open a connection to the server so
state can be
maintained throughout the life of an application. None of the
request,
response, forget cycle that needs to be worked around in
normal HTTP
applications.