Lurker News

Comments (247) 63 threads

Earlier comments
nodesocket1 reply#
Couldn't this be fixed by instead of using ?next= in the query string storing a cookie.

For example:

    if(!auth) {
        setCookie('next', '/url-here', 1h);
    }
    redirect(login);
Login page action:

    if(cookieExists('next')) {
        next = getCookie('next');
        deleteCookie('next');
        redirect(next);
    } else {
        redirect('dashboard');
    }
detaro#
Could easily muddle state with multiple tabs though, query string is clearer.
rosalinekarr1 reply#
This 'fingerprint' changes as you login in and log out of various services, so it's not very reliable for uniquely identifying users. Regardless, it could still be used to profile you and then target content accordingly. For example, if you're logged into Hacker News, you're probably a programmer and you're probably more interested in an ad for web hosting than wedding dresses and visa versa for Pinterest.

Load more comments