How do I permanently turn off this visual editor and make it so that it defaults to source code for me when I'm logged in?
Topic on Project:Support desk
It's in your preferences.
Normally the cookies should take care of that. I just logged out to test it and I opened up a page. It first opened in visual editor, but then I switched it to source. I tried editing another page and it opened up in source editor.