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

fix of #115 - stay connected and session livetime