can we store multiple value in cooking through javascript ???
like as i am trying to do in below code segment...
if (document.frmRegistration.txtName.value!="" && document.frmRegistration.txtAge.value!="")
{
cookieName= escape(document.frmRegistration.txtName.value) + ";";
cookieAge=escape(document.frmRegistration.txtAge.value)+";";
document.cookie="name="+cookieName+";age="+cookieAge+";";
document.write("Name="+cookieName+"Age="+cookieAge);
}
{
cookieName= escape(document.frmRegistration.txtName.value) + ";";
cookieAge=escape(document.frmRegistration.txtAge.value)+";";
document.cookie="name="+cookieName+";age="+cookieAge+";";
document.write("Name="+cookieName+"Age="+cookieAge);
}

Ramesh PalanivelRank #372 · 6.8K reputationPosted Nov 27, 2017, 7:53 PM EST
kalpana jaiswal44 reputationPosted Nov 30, 2017, 5:35 AM EST
Ramesh PalanivelRank #372 · 6.8K reputationPosted Dec 27, 2017, 5:07 AM EST