Prevent "Failed to create..." warnings when session loading fails
authorGergő Tisza <tgr.huwiki@gmail.com>
Wed, 2 Mar 2016 23:36:02 +0000 (15:36 -0800)
committerGergő Tisza <tgr.huwiki@gmail.com>
Wed, 2 Mar 2016 23:36:02 +0000 (15:36 -0800)
commit664ba620e97613f79847a822ac83074402b27a2c
tree63bd4821dc4fa5802b2bbaeaa2a5eb3c1b958d25
parentee1d97b3cc731618d184facba9dec0f1afda0833
Prevent "Failed to create..." warnings when session loading fails

If there is an existing session for a given ID but loading it fails,
there is no point in trying to create a new empty session with that
ID. Just fail silently (the reason for not loading the session
should be logged elsewhere), don't spam the logs and don't slow
down execution by throwing and catching an exception.

Change-Id: I8299872cc29c32cb245686ed0bca6b9a5902cdc1
includes/session/SessionManager.php