Whether you use client-side or server-side state saving should not affect dependency injection. If switching the state saving is causing you problems then you need to find out what's wrong with state saving itself. It's most likely that the client isn't receiving and resending the state properly. This might mean that the client's cookie handling isn't enabled.
An IDE is no substitute for an Intelligent Developer.