Cookies is the best way.
I don't see how this is a F.A.Q ? lol
I guess we'll move it later.
Here is some javascript for cookies. If you know how to use javascript.
/* Cookie Code. */
var exp = new Date();//New date object.
exp.setTime(exp.getTime()+(1000*60*60*24*7));//Set timeout to 7 days.
function setCookie(name,val,expires) {
document.cookie=name+"="+escape(val)+"; path=/"+((expires == null)?"":"; expires="+expires.toGMTString());
}
function getCookie(name) {
cname=name+"=";
dc=document.cookie;
if(dc.length>0) {
begin=dc.indexOf(cname);
if(begin!=-1) {
begin+=cname.length;
end=dc.indexOf(";",begin);
if(end==-1)end=dc.length;
return unescape(dc.substring(begin,end));
}
}
return null;
}
To set a value: setCookie("COOKIE_NAME", "COOKIE_VALUE", exp)
To get a value: getCookie("COOKIE_NAME")