We have an application that establishes a session variable upon the user logging into our application. Its a single JSON string stores as session and we deserialize to an object when we want to access user profile items. Everything works as it should. The issue we have happens when we are developing. We validate for session upon load of a view. If session is null we redirect the user back to the login page. However while developing, we will have the page open and make a change to the HTML. Upon saving the change, Visual Studio recompiles the project and reloads the page. Well when the reload happens, and it checks for session, the session is null so it kicks the user back to the login page. This makes development time much longer. What is the best approach to overcoming this? Is it to save session in the database? Not sure how that will work either since we have to identify the user in some fashion to pull in the session data from the DB.
Any help would be great
Thanks
Steve C