You can set a cookie (if the user is accepting them) php code example Example: cookies php syntax setcookie("cookie_name", "type_on_cookie", expiry_time(), "/");