fix of localhost cookie related to nginx binding to 0.0.0.0
Merge pull request #582 from mariroz/fix-session-livetime

fix of localhost cookie related to nginx binding to 0.0.0.0