Answers for "set cookie on button click php or js"

PHP
0

set cookie on button click php or js

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())
	}
Posted by: Guest on May-02-2021

Browse Popular Code Answers by Language