Now using PHP session lifetime as default value for the JS config

This will fix the heartbeat when the session_lifetime config parameter
hasn't been set explicitly.
Merge pull request #7243 from owncloud/core-sessionlifetimedefault

Now using PHP session lifetime as default value for the JS config