Secure Session Variables

UPDATE: This is not a working solution

I think I might have found a solution. With this answer: Secure, persistent server side variables?

It’s using Meteor.onConnection