====== Getting the Cookie to the Director ======


--[[Director
function director:Initialize()
cookie = OpenFile(GetCurrentPath().."\\Cache\\sputnik.cookie")
cookie=str_replace(cookie,"\n", "")
cookie=str_replace(cookie,"\r", "")

InternetRequest.SetCookie('http://tv2.dk', "tv2login", cookie);
end
EndDirector]]--



----

See Also: [[Retrieving Cookies]], [[InternetRequest]], [[Script Functions v1#openfile|OpenFile]]