session library: https://github.com/bpowers/seshcookie postgres library: https://github.com/bmizerany/pq