if ($name->login == $login && $name->password == $password){
setcookie ("login", $login,time()+3600);
}
if(!empty($_COOKIE['login'])){echo $_COOKIE['login'];}else{echo'<div class="line_btn_l auth">ВХІД</div><div class="line_btn_l reg">РЕЄСТРАЦІЯ</div>';}