On our ASP.NET project, we have the code
<sessionState mode="SQLServer" sqlConnectionString="data source=xxx;user id=xxx;password=xxx" cookieless="UseCookies" timeout="180" regenerateExpiredSessionId="false" />
This code must remain unchanged, we need to be using cookies. However, we want to have a different session every time they login. To do this, we are thinking of generating a new GUID every time they log in and use that as part of the session. So, instead of Session["User"], it'll be something like Session["User"+GUID]. That user is only going to have one session, but if we use different GUID for each login, then we should be able to have differentiate the session. The problem we are running into where do we store that GUID? I've tried HTTP Headers, ViewState, however, if we do a full refresh, those are wiped out. Does anyone know where we can store the unique GUID we generate when the user logs in?
Please look at the comment if you want to know what we are actually trying to do. I know this is a horrible way of doing it, but the app is really old and this may be the only way without doing a big re-write.