Re: globals

2006-04-10 Thread David N. Welton

Persistent in the case of globals in Rivet means that, in one particular
child process, a variable will not be deleted between requests.  Since
it's tied to a system process and not a user, it's not useful for user
information.  On the other hand, it is useful for things like database
handles - you can define a proc to check if it exists, create it if it
doesn't, and return it in either case.

 ok, I'm going to expose my vast ignorance in web programming: what
 do you mean for 'request' in this context? Apache child processes
 have no knowledge of concepts as 'session', so when the link
 (and the 'request' context) between client and server's child
 process is dropped?

A request is one client to server round trip.  For example:

GET /index.rvt HTTP/1.0

That asks for just that one page, no pictures, nothing else - all that
is fetched separately.

This looks like an ok description, and has some promising links.

http://en.wikipedia.org/wiki/HTTP

In any case, that's correct, there is no state unless you create it
artificially, by using the session package for instance.

-- 
David N. Welton
- http://www.dedasys.com/davidw/

Linux, Open Source Consulting
- http://www.dedasys.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: globals

2006-04-10 Thread Massimo Manghi
Quoting David N. Welton [EMAIL PROTECTED]:

  ok, I'm going to expose my vast ignorance in web programming: what
  do you mean for 'request' in this context? Apache child processes
  have no knowledge of concepts as 'session', so when the link
  (and the 'request' context) between client and server's child
  process is dropped?

 A request is one client to server round trip.  For example:

 GET /index.rvt HTTP/1.0

 That asks for just that one page, no pictures, nothing else - all that
 is fetched separately.

 This looks like an ok description, and has some promising links.

 http://en.wikipedia.org/wiki/HTTP

 In any case, that's correct, there is no state unless you create it
 artificially, by using the session package for instance.


thank you, the first part of your explanation made
it clear.

-- Massimo Manghi




This message was sent using IMP, the Internet Messaging Program.

Imp3 - Webmail del Dipartimento di Biologia Evolutiva e Funzionale

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]