Jump to content

setting a youtube cookie


cresler

Recommended Posts

Hi,

 

I'm trying to set a cookie when a user enters a page (already have a login system). The cookie is for youtube to make videos default to widescreeen.

 

I know that the cookie has the following details:

name: wide

value: 1 (=enabled)

domain: .youtube.com

 

... but I dont know how to do it properly. Ive been trying to set it so that when a user logs in to my site, the cookie is set. youtube loads in a frame and I want the video to open as widescreen in the frame.

 

however, whenever I look at the list of cookies in my browser, it isnt being created.

 

is this the best way to do this?

 

(I found how the cookie is created by checking the values of the cookies when I pressed the 'right turn' arrow on a youtube video)

 

any help is much appreciated!

Link to comment
https://forums.phpfreaks.com/topic/202582-setting-a-youtube-cookie/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.