> writing an apache module that did the following:
> 
> When a file with .pdf is asked for it looks to see if the user is 
> currently in a session (aka 'logged on'). I'm guessing the module can 
> know this by using the HTTP headers. Figuring we can look to see if 
> its giving a cookie with the sid or its part of the URL.

you can handle that with php also, if you don't allow direct download. 
instead you write a download skript that first checks for login, then 
sends the proper header to handle the download and then passes the data
to the user. you can find information about that in the manual at 
www.php.net/header

> Now according to this the cookie like files should be deleted after 
> 1440 seconds, but on my machine their not. Any reason why?

the 1440 is just when the data is identified as garbage.
after that also the garbage collector must be invoked.
you have a gc_probability of 1% set, so it's not very likely they will 
be deleted soon....

sebastian

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to