Issue #1315708 by ceng: Clean up stale sessions at login to improve compatibility with session limit module