MVC Unity Reset DI when user logs out
问题 I am using unity as my IoC and when the application loads up I setup my initial DI in the global.asax that my login screen needs. When the user logs in I then setup my main DI that creates all the DI stuff for the rest of the application. One of the objects I am creating is storing the user details from the login screen and I am using that dto to inject into my services to be used for authorisation. The issue I have is when the user logs out. I need to dispose of the dto that contains the