codeclubsocial / codeclub_website_dev

CodeClub website source (website no longer hosted)
http://www.codeclub.social
26 stars 7 forks source link

cookie determines whether someone has account #39

Closed holaymolay closed 7 years ago

holaymolay commented 7 years ago

Server should issue a cookie that allows the server to determine whether the visitor has previously logged in with a user account.

If yes, '/' loads index If no, '/' loads landing page

craig429 commented 7 years ago

We made session cookies infinite on last night's commit: https://github.com/codeclubsocial/codeclub_website_dev/commit/8a54b501fd207bcc60165897fd020e543e4ddc55 We can redirect based on the result of req.isAuthenticated(). I will go ahead and do that. But keep in mind that if we decide at some future date to make session cookies expire we will need an alternate mechanism to establish "previously visited" status.

craig429 commented 7 years ago

Wow, that link didn't work! If I cut and paste it into my browser it works good. Hmmm........

craig429 commented 7 years ago

Git automatically inserted the above comment, presumably based on my reference to the issue number in the commit narrative. Pretty sweet. And THEIR link works just fine. Closing this issue.