PHP: How to Create and Read Cookies
- Lucas
- March 04, 2012
Cookies are data exchanged between the browser and the server, used to store user preferences, login and so on. How to create a Cookie in PHP? // Criando Cookies $nome = “masterdaweb”; $valor = “Cookie Criado com Sucesso”; $expira = time() + 3600; setcookie($nome, $valor, $expira); $name – Cookie name. $value – The value