senchalabs/connect — pull request #475 by baryshev (2012-02-18 21:46:16+00:00)
Title: Change session behavior

1. I add support undefined state for maxAge cookie param and set it by default. undefined value for this param means that session will live while browser session live and die together too. Before this time it was impossible (0 or undefined values for maxAge created zero-time session). Also 4, 5, 10 hours for default session live time - wrong way i think, because it application dependent param. Browser session live time looks better for default value.
2. Before this time session cookie cookies sent with each response. This behavior is prevented caching pages with frontend web-servers like nginx because we must always accept new cookies. Now the cookies sent only once - after creation of session and not prolongate his lifetime until session ends.

Sorry for my bad english, but i hope that you will understand me. Thanks.