kipraske / web-brogue

Play brogue in a web browser
GNU General Public License v2.0
20 stars 17 forks source link

Enable Persistent Sessions #15

Closed kipraske closed 8 years ago

kipraske commented 9 years ago

We have the session ids saved in memory, we just don't have the cookie parser set up quite yet.

kipraske commented 9 years ago

Right now I was setting up sessions to run on the user object. Though in hindsight perhaps I should persist the session keys in the mongodb instead and have them expire after awhile if needed. It will take some thinking.

It seems like having all of these inactive users in memory may be a bad idea after awhile - though perhaps maybe not.

flend commented 8 years ago

I implemented a cookie-like system using tokens stored in the browser's local storage