On Fri, 2008-01-04 at 13:29 -0500, tedd wrote: > At 1:09 PM -0500 1/4/08, Robert Cummings wrote: > >On Fri, 2008-01-04 at 12:58 -0500, tedd wrote: > >> Hi gang: > >> > >> Here's the problem. > >> > >> I have a client who has Flash Videos and wishes to rent these Videos > >> out for a certain time period. (No, it's not porn -- shame on you). > > > >Bah! > > > >> I have written the code and have NO problems with registering the > >> user, having the user pay, and managing user's time to allow viewing > >> the video. That's all been solved. > >> > >> However, once the user is provided with a url where the Flash Video > >> resides, then the user can view the video remotely by just creating a > >> page that references that url -- that's easy to do. > >> > >> Now, how can I stop that from happening? > > > >Use a URL that maps to a PHP script. Have the PHP script check that they > >are logged in. If not, redirect to login. If they are logged in, then > >flush the flash object to their browser with appropriate headers. > > Rob: > > I have all of that logic in place now. Then what is the problem? or do you mean you don't ant the same user to view the item while logged in at some point in the future? If so then use a GET parameter (MD5 or SHA1 should suffice) that maps to a DB entry that indicates expiration time. Cheers, Rob. -- ........................................................... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ........................................................... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php