views:

6

answers:

0

Heya guys,

I want to let users on a website I'm building to log in with YouTube after clicking a link, so they can post comments on YouTube on some videos that I'm displaying from a YouTube feed, as well as let them upload their own videos that I would link on the website.

Problem is, I'm using an unauthentificated instance of the Zend_Gdata_YouTube object to retrieve feeds and such, but I would need an authentificated instance for the users. Is it feasible to link the Log in button to a PHP script that would authentificate the user and store the authentificated instance of the object in a session variable while still using the unauthetificated instance for regular tasks?

How would that scale if I have a lot of traffic on the site? Please advice...

EDIT

Problem solved, I was dumb. It's all a matter of keeping the auth token in a session variable, not the whole object instance.