Loginf funktioniert jetzt wieder!

This commit is contained in:
ja
2021-10-22 08:47:44 +02:00
parent e96e9ca08e
commit 67f0dbd992
3 changed files with 57 additions and 74 deletions

View File

@@ -2,41 +2,43 @@
<script runat="server">
void Application_Start(object sender, EventArgs e)
void Application_Start(object sender, EventArgs e)
{
// Code, der beim Anwendungsstart ausgeführt wird
// Code that runs on application startup
ScriptManager.ScriptResourceMapping.AddDefinition("jquery",
new ScriptResourceDefinition
{
Path ="https://code.jquery.com/jquery-3.5.1.min.js",
DebugPath = "~/scripts/jquery-1.7.2.js",
CdnPath = "http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.1.min.js",
CdnDebugPath = "http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.1.js"
});
// Code that runs on application startup
ScriptManager.ScriptResourceMapping.AddDefinition("jquery",
new ScriptResourceDefinition
{
Path ="https://code.jquery.com/jquery-3.5.1.min.js",
DebugPath = "~/scripts/jquery-1.7.2.js",
CdnPath = "http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.1.min.js",
CdnDebugPath = "http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.1.js"
});
}
void Application_End(object sender, EventArgs e)
void Application_End(object sender, EventArgs e)
{
// Code, der beim Herunterfahren der Anwendung ausgeführt wird
Session.Remove("TokenforEmail");
Session.Remove("SessID");
Session.Remove("urltochangepw");
Session.Remove("urltochangepw");
}
void Application_Error(object sender, EventArgs e)
{
void Application_Error(object sender, EventArgs e)
{
// Code, der ausgeführt wird, wenn ein nicht behandelter Fehler auftritt
}
void Session_Start(object sender, EventArgs e)
void Session_Start(object sender, EventArgs e)
{
// Code, der ausgeführt wird, wenn eine neue Sitzung gestartet wird
FormsAuthenticationTicket formsAuthenticationTicket = new FormsAuthenticationTicket(2,"ticket",DateTime.Now,DateTime.Now.AddMinutes(-30),true,"Par1="+Session.SessionID.ToString());
FormsAuthentication.Encrypt(formsAuthenticationTicket);
FormsAuthentication.RenewTicketIfOld(formsAuthenticationTicket);
}
void Session_End(object sender, EventArgs e)
void Session_End(object sender, EventArgs e)
{
// Code, der ausgeführt wird, wenn eine Sitzung beendet wird.
// Hinweis: Das Ereignis "Session_End" wird nur ausgelöst, wenn der Modus "sessionstate"
@@ -47,8 +49,6 @@
Session.Remove("urltochangepw");
Session.Remove("UserID");
Session.Remove("test");
Session.Remove("PW");
}
Session.Remove("PW");
}
</script>