How to do something like this with cookies?
If a cookie exists, redirect user to a last used URL on a site or a homepage.
If not, create a cookie + redirect to specific page with registration form.
Can you check if this php
-code is doing this as defined above?
<?php
if(!isset($_COOKIE['firsttime'])) {
?>
<meta http-equiv="refresh" content="0; url=http://example.com/">
<?php
} else {
setcookie('firsttime',time() + (86400 * 7));
?>
<meta http-equiv="refresh" content="0; url=http://example.com/"> // redirecrting to registratio form
<?php
}
?>