Jump to content

comment lire mes cookies


Recommended Posts

Bonjour,

dans le fichier "utils.js" de ton thème, tu as une fonction qui permet de récupérer la valeur du cookie :

function GetCookie (name) {
   var arg=name+"=";
   var alen=arg.length;
   var clen=[removed].length;
   var i=0;
   while (i        var j=i+alen;
       if ([removed].substring(i, j)==arg)
                       return getCookieVal (j);
               i=[removed].indexOf(" ",i)+1;
                       if (i==0) break;}
   return null;
}



donc tu peux l'utiliser en faisant :

GetCookie (“TestCookie”) ;




@+

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...