I'm pretty sure you get the perks whether you're logged in or not. It would be kind of dumb to force players to remain logged in 24x7 just to get 25 perkies, since you never know when the map will get won. The only requirement would be that you have been on the winning side for the requisite time, which I believe is currently 12 hours.