D
DotNetGruven
Hi,
I'm noticing that if web.config is changed, the web app is restarted and all Sessions are restarted as expected, but with Web Form authentication, it seems like the user is still authenticated. This allows the user to keep on trucking, but without any session state.
Adding the following code to Session_Start in global.aspx.cs
protected void Session_Start(Object sender, EventArgs e)
{ if ( User.Identity.IsAuthenticated ) { FormsAuthentication.SignOut(); }}
Fixes the problem, but I'm shocked that a google of ASP.NET Session_Start IsAuthenticated SignOut doesn't return a bunch of info and an explanation.
Can anyone explain this?
TIA
geo
I'm noticing that if web.config is changed, the web app is restarted and all Sessions are restarted as expected, but with Web Form authentication, it seems like the user is still authenticated. This allows the user to keep on trucking, but without any session state.
Adding the following code to Session_Start in global.aspx.cs
protected void Session_Start(Object sender, EventArgs e)
{ if ( User.Identity.IsAuthenticated ) { FormsAuthentication.SignOut(); }}
Fixes the problem, but I'm shocked that a google of ASP.NET Session_Start IsAuthenticated SignOut doesn't return a bunch of info and an explanation.
Can anyone explain this?
TIA
geo