Creación de cookie
Por MigueliTUX Sep.10, 2009, categoría JavaScript
Creación de cookie en JavaScript
// Creación de cookie function createCookie(name, value, days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; }
gentileza de @NelsonCuevas
fuente http://www.yourhtmlsource.com/javascript/cookies.html
September 11th, 2009 on 12:39 pm
[...] la funcion createCookie esta definida acá http://www.tips.cl/archives/484 Compartelo :cookie, [...]
March 27th, 2010 on 1:49 pm
[...] cookie http://www.tips.cl/archives/484 #TipsCL [...]
April 17th, 2010 on 1:56 pm
[...] cookie http://www.tips.cl/archives/484 #TipsCL [...]
May 29th, 2010 on 1:52 pm
[...] cookie http://www.tips.cl/archives/484 #TipsCL [...]
June 5th, 2010 on 1:46 pm
[...] cookie http://www.tips.cl/archives/484 #TipsCL [...]