Recently I realised that any medium.com-backed website (say https://medium.freecodecamp.com) persist my session across domains. Even if I only visit the domain for the first time, I still see I am logged in.
Do you know what's the mechanics behind this and how can I achieve something like this with ruby on rails?
Thank you