Can't login to TurkerView?

Discussion in 'Help & Guides' started by Rook, Apr 26, 2022.

Thread Status:
Not open for further replies.
  1. AlexZ

    AlexZ Distinguished Butthat The Prophet

    Messages:
    15,998
    Gender:
    Male
    Ratings:
    +50,199
    Alright, check this out. Two scenarios (tested in Chrome):


    1. Forum first, then TurkerView main site

    If you clear cookies for turkerview.com and forum.turkerview.com and then go to forum.turkerview.com and log in there first (by pressing the "Log in" button that's in the header, not the green button that's disabled atm), and only after that go to the main turkerview.com site, you'll be logged in just fine.

    The forum's login creates a "tv_session" cookie for ".turkerview.com" (note the leading dot) with expiration date set 1 year in the future. Then the main site recognizes it just fine and logs you in automatically and everything is dandy.


    2. TurkerView main site first, then forum

    If you clear cookies for turkerview.com and forum.turkerview.com and then even simply visit the main turkerview.com site before logging in on the forum (like literally don't even have to log in anywhere, just by going to turkerview.com), it will immediately create a weird "tv_session" cookie that's set for "turkerview.com" without the leading dot, making it a host-only cookie, not a domain-wide cookie. Its expiration date is set to Session. So then when you actually try to log in, the forum will log you in and it will create the actual real "tv_session" cookie that's set to ".turkerview.com" and has expiration date 1 year in the future, and you'll end up with two cookies named "tv_session" - one (fake one) for "turkerview.com" and one (real one) for ".turkerview.com", and since the cookie that's set for "turkerview.com" has priority because it's host-only, turkerview.com will try to (unsuccessfully) use that one and ignore the other one. So you will not be able to log in on the main turkerview.com site. Deleting that fake cookie and only leaving the one for ".turkerview.com" and then refreshing the page fixes it.


    TLDR: So basically two cookies with the same name, different scope. Either add the leading dot to the fake cookie (you'll probably also need to add HttpOnly and Secure flags in this case) or remove it altogether, idk. :dunno:


    Other weird shit:
    • Once you actually log in on turkerview.com, it will automatically log you out in 45 minutes. If you visit turkerview.com before it logs you out, it will reset the timer to 45 minutes again. So it's 45 minutes since your last visit. Once it logs you out, the "tv_session" cookie doesn't get deleted, but a new "tv_sync" cookie is created with the value of "false". If you log in again, it will reset the "tv_session" (to the new session value) and delete the "tv_sync" cookie. And then it will again log you out 45 minutes later.
    • When you log in on the forum and it creates the actual real "tv_session" cookie, it sets the expiration date to 1 year in the future. But when you then go to turkerview.com, it resets the expiration date of that cookie to 6 months in the future, and it does so every time you load turkerview.com. No idea if relevant, probably not, but just throwing it out there.
     
    • Love Love x 1
    Last edited: Sep 24, 2025
  2. AlexZ

    AlexZ Distinguished Butthat The Prophet

    Messages:
    15,998
    Gender:
    Male
    Ratings:
    +50,199
    While @CT is working on it, you can do this to fix your main site in the meantime:
    1. Go to turkerview.com
    2. Press Ctrl+Shift+I or F12 (Windows, eww!) or Cmd+Option+I (Mac, yay!) to open DevTools
    3. Switch to Application tab up top
    4. Then on the left side go to Cookies -> https://turkerview.com
    5. Select cookie "tv_session" that has Domain set to "turkerview.com" and then right click -> Delete (do not delete the other "tv_session" cookie that has Domain set to ".turkerview.com", that one's good).
    Refresh page, you should be logged in now, and shouldn't have any issues logging in on the main site again going forward, as long as you're logged in on the forum.

    [​IMG]
     
    • Love Love x 1
  3. AlexZ

    AlexZ Distinguished Butthat The Prophet

    Messages:
    15,998
    Gender:
    Male
    Ratings:
    +50,199
    Tho tbh that cookie probably got auto-deleted when you restarted your browser/computer, so you're probably already all set. But whatever, maybe it'll help someone else out there who refuses to restart their browser. :lol:
     
  4. WildFlower

    WildFlower Survey Slinger FF Champion II

    Messages:
    4,313
    Gender:
    Female
    Ratings:
    +5,018
    Restarting the browser didn't fix the issue, but I'll give this a shot. Regardless of whether it works, very much appreciate the detailed instructions on how to do this.
     
    • Love Love x 1
  5. WildFlower

    WildFlower Survey Slinger FF Champion II

    Messages:
    4,313
    Gender:
    Female
    Ratings:
    +5,018
    Worked like a charm. Thanks again.
     
    • Love Love x 1
  6. ChrisTurk

    ChrisTurk Administrator

    Messages:
    56,779
    Ratings:
    +163,507
    Locking this as the existing issue is resolved & if it/something new pops up would like a new thread on it <3
     
    • Love Love x 2
Thread Status:
Not open for further replies.