Commit 93da788d56c9271726eba7c05b6ae19e5769e24f

Authored by Edmar Moretti
1 parent 9c769940

Correção na função de definição de cookies, inserindo uma data de validade para + 10 dias

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
classesjs/classe_util.js
@@ -211,7 +211,9 @@ i3GEO.util = { @@ -211,7 +211,9 @@ i3GEO.util = {
211 */ 211 */
212 insereCookie: function(nome,valor) { 212 insereCookie: function(nome,valor) {
213 if(typeof(console) !== 'undefined'){console.info("i3GEO.util.insereCookie()");} 213 if(typeof(console) !== 'undefined'){console.info("i3GEO.util.insereCookie()");}
214 - document.cookie = nome+"="+valor+";path=/"; 214 + var exdate=new Date();
  215 + exdate.setDate(exdate.getDate() + 10);
  216 + document.cookie = nome+"="+valor+"; expires="+exdate.toUTCString()+";path=/";
215 }, 217 },
216 /* 218 /*
217 Function: pegaCookie 219 Function: pegaCookie