scottgonzalez / debt

DEBT: Exceptional Bug Tracking
MIT License
5 stars 2 forks source link

Web: set cookie maxAge to allow for a persistent login #50

Closed arschmitz closed 10 years ago

arschmitz commented 10 years ago

Fixes gh-48

scottgonzalez commented 10 years ago

Shouldn't the cookie options be passed to the cookieParser middleware?

arschmitz commented 10 years ago

i got this usage from.

http://stackoverflow.com/questions/10429557/whats-the-correct-way-to-use-maxage-with-express-js

arschmitz commented 10 years ago

also http://www.senchalabs.org/connect/session.html shows the same

scottgonzalez commented 10 years ago

I guess the docs do say this is the right way to set the length. Seems strange that they don't suggest setting the cookie options with the cookie middleware.

You need to sign your commit. And don't use gh- references, use #.

arschmitz commented 10 years ago

oh right used to jquery :) ill fix right now

arschmitz commented 10 years ago

Fixed