Merge pull request #567 from mariroz/fix-session-livetime

fix of #115 - stay connected and session livetime
Merge pull request #572 from mariroz/fix-session-livetime

fix of #115, server relater config value added
fix of  _SESSION - indefined variable