fix patch to extend session id - only for mysql