MCPcopy Create free account
hub / github.com/ActiveState/code / SetCookie

Function SetCookie

recipes/JavaScript/578517_Music_player/recipe-578517.js:138–143  ·  view source on GitHub ↗
(name,value)

Source from the content-addressed store, hash-verified

136}
137
138function SetCookie(name,value)
139{
140 var xDate = new Date();
141 xDate.setDate(xDate.getDate() + 365);
142 document.cookie=name+"="+escape(value)+";expires="+xDate;
143}
144
145function GetCookie(name)
146{

Callers 2

save_playlistFunction · 0.85
save_feedback_valuesFunction · 0.85

Calls 2

getDateMethod · 0.80
escapeFunction · 0.50

Tested by

no test coverage detected