posted by GearGoblin on 8th Jul 2014, 11:05 AM.
We have a cookie problem. Not the good kind. ![]()
For historical reasons, different parts of the site look for different login cookies. Some code reads one name, some reads another, and the nav bar reads a third. It works, in the way a three-legged chair works.
This is the kind of change you do slowly, because auth bugs are the worst bugs.
Here is the audit helper we ran first:
CODE grep -rn "Cookie" src/ public/ | grep -i userThe results were humbling. There were more cookie names than crew members.
Because someone six months from now will ask "why is login weird" and deserve an answer that is not a shrug. If you want the gory details, they live on the community boards, and the tracking notes are on https://madsplash.net/blog.
No cookies were harmed. Yet. ![]()
Please go slow here. Auth bugs ruined a whole weekend once.
Grep audit was the right first step.
Three cookie names, one chair with three legs. Perfect metaphor.