CSC510-2015-Axitron / maze

Main repo for maze game
0 stars 2 forks source link

Save & retrieve session cookie #69

Closed macluo closed 9 years ago

macluo commented 9 years ago

Cookie is needed for player to stay logged in when opening main page & designer page.

macluo commented 9 years ago

Cookie is now supported and is ready to be implemented on designer too fad41e130f7df0c82a30255b055d2d1d23c3d360

One benefit of having cookie is now player can stay on when opening the page. To test the page locally, you need to enable "--enable-file-cookies" flag on Google Chrome.

macluo commented 9 years ago

I set cookie to expire in 1 day. Should we made it shorter since the token on remoteDB expires after 30 mins?

macluo commented 9 years ago

Cookie is now self-deleted after token expires on Heroku 836558c31e0c5967d336fc692e744342ac22ee89