How can I change this function to expire instead of days in 30 seconds?, I have no idea about this.. and its from Telerik
function setCookie(c_name,value,expiredays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}
You could use the
valueOffunction: