I found a solution, though I don't understand it. I was using perlmonks.org, and I started using perlmonks.net instead. Suddenly everything works like it should. I can stay logged in, and my cookie persists after I close my browser.
Corion, thanks for moving this--I'll remember the distinction in the future.