SEE http://www.w3schools.com/js/js_cookies.asp
Full working code there. (except the logout, which is easy – just reset cookie to expire in 0 seconds.)
SEE http://www.w3schools.com/js/js_cookies.asp Full working code there. (except the logout, which is easy – just
Share
if you have a look at
}causes a syntax error after the first today.toGMTString();where is the
setCookiefunction? this also could be a reason that it dose not work.also
c_nameis not defined