when I surf http://www.youtube.com/html5/?gl=FR&hl=fr
and click "join youtube html5"
I will notice that the visit creates a cookie on my firefox browser

the information is as follows, where "f1=40000000&f2=40000000" is the key

I want to create a blank html page which has javascript codes
when I visit this html page, I hope it will set the same cookies for me
I mean the domain is "youtube.com" and the content is f1=40000000&f2=40000000
expiry time is not important, as long as it can be maintained before the browser is closed
the reason for me to do this is at the end if you want to know
how to write the code? thanks

Host:                 .youtube.com
Name:                 PREF
Path:                 /
Content:              f1=40000000&f2=40000000
Content raw:          f1=40000000&f2=40000000
Expires:              At end of session
Expires raw:          0
Send for:             Encrypted connections only
Send for raw:         true
Created:              Mon 08 Oct 2012 01:10:42 PM UTC
Created raw:          1349701841568107
Last accessed:        Mon 08 Oct 2012 01:10:46 PM UTC
Last accessed raw:    1349701846292406
HTTP only:            No
HTTP only raw:        false
This domain only:     Yes
This domain only raw: true
Policy:               no information available
Policy raw:           0
Status:               no information available
Status raw:           0

reason for doing this: the modified firefox will delete all cookies when it is closed, and I want to do some repeated test by scripts, so I want to use script to make this firefox to visit the created blank html page to get the cookie