Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.