Topic awaiting preservation: PHP, Session, Temp File (Page 1 of 1) |
|
---|---|
Maniac (V) Mad Scientist From: Jacks raging bile duct.... |
posted 01-30-2009 21:29
Hi all, |
Maniac (V) Mad Scientist From: Denver, CO, USA |
posted 01-30-2009 21:52
You could store the session id, the mp3 filename, and a timestamp in a database, then run a cron job every 15 minutes or something to remove the ones that expired. That'd be the way I'd go. Also keeps a good running tally of what you've got out there at any given point. |
Maniac (V) Mad Scientist From: Jacks raging bile duct.... |
posted 01-30-2009 22:01
where would you store the physical mp3 so that it couldn't be shared/hotlinked? |
Paranoid (IV) Inmate From: cell 3736 |
posted 01-31-2009 02:43
in a non accessible location, served through a php script that checks whether the origin of the request is from the right url(s) ... this can be faked but it's the best you can do short from authentication ... I think ... maybe there's an even easier solution tho ... |