Code changes to add the correct behaviour for prototype scope for sessions.