Cookie given when signing in is valid for 1 day.

Fix issue #16.