Server-side of refactored JP session restoration