AW: [PHP] Session files? (Very Techy Questions)

From: Date: Wed, 21 Feb 2001 16:54:47 +0000
Subject: AW: [PHP] Session files? (Very Techy Questions)
Groups: php.general 
Request: Send a blank email to php-general+get-40999@lists.php.net to get a copy of this message
> 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

« previous php.general (#40999) next »