This is a bit of a test - It normalises the way the session params are set with that of J3. The main aim is to solve the session being 'lost' when upgrading from j3 to j4. If you still get password prompted this is no good and can be consigned to the dustbin :)
Testing Instructions
Upgrade from j3 to j4 - hopefully you don't get kicked out the browser :)
@zero-24