Changed session creation to be optional. Now only triggered when launching apps.