<?php setcookie('id', $id, strtotime('+1 hour'), '/'); setcookie('login', $login, strtotime('+1 hour'), '/');