PHP

Topic: Cookies

What is syntax of setcookie?

setcookie(name, value, expire, path, domain); In the example below, we will create a cookie named "user" and assign the value "Alex Porter" to it. We also specify that the cookie should expire after one hour:
<?phpsetcookie("user", "Alex Porter", time()+3600);?>

Browse random answers: