RE: netWindow - PHP data transfer model

"Christian Boulanger" <[email protected]>
Newsgroups gmane.comp.windows.devel.netwindows
Message-ID <001201c3612b$ed2133d0$0200a8c0@Laptop>
Mark,

Thanks so much for your many infos. You should make this stuff part of the
final nW distribution, since hobby developers like me have no idea about it.
I hope we are not boring anybody else on this list, which is supposed to be
for nw-"developers" (and I am turning it into nw-"Support")...

> user id) to be in the request url. It should be possible to 
> control use of http headers on a per request basis in PHP (it 
> is designed for building web apps, right?).

Yes I think I can set the session procedures to do that, have to figure out
how.
But you are saying that absolutely no cookies should be used if NW is to
work correctly, is that correct?

> The simplest approach for you would be to just set Expires 
> (or equivalently, Cache-Control: max-age).
> If-Modified-Since is suitable for information with 
> unpredictable aging. Note that there are also IE-specific 

To what do I set it exactly? From a different script, I copied

Header("Cache-Control: no-store, no-cache, must-revalidate");
Header("Cache-Control: post-check=0, pre-check=0", false);
Header("Pragma: no-cache");

without, however, understanding what that does (I wanted to avoid the
javascript to be cached, since this prevents from changes in the javascript
to be updated in the browser cache). Is this totally wrong?

> For a data-url, you should set pre-check and post-check to 
> the same value and equal to max-age.

Again, can you just copy and paste a sample code I can put into the PHP
"Header" command?

Thanks,

Christian 


_______________________________________________
The netWindows developers list: [email protected]
http://netwindows.org/mailman/listinfo/devel_netwindows.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.