Re: maintaining state between request cycles....
[prev]
[thread]
[next]
[Date index for 2005/01/06]
greger@xxxxxxxxxxxxxxxxx.xxx wrote:
> Hi,
> in my application ( the Project XP ) I use mod_perl.
> but I haven't yet found a good way of maintaining state between request
> cycles, using hidden fields and cookies. Is there ( I hope ) a better way
> to store the state of the client/server application between requests other
> than hidden fields and cookies?
HTTP is a state-less environment. Once the server serves the request it
forgets about the client. There is no way for the server to positively
be able to identify the client on the clients next visit. The only way
that state can be maintained is for the client to present some token to
the server (either in a cookie, or hidden field, etc) telling the server
who it is. I'm pretty sure that there is no way around this.
Why does it bother you to use cookies or hidden fields?
--
Michael Peters
Developer
Plus Three, LP
 |
 |
Re: maintaining state between request cycles....
Michael Peters 14:20 on 06 Jan 2005
|