Loginf funktioniert jetzt wieder!
This commit is contained in:
46
Global.asax
46
Global.asax
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user