mocha/dotnet/Webapps/Mocha.Web/Logout.aspx.cs
2023-10-31 11:47:27 -04:00

30 lines
641 B
C#
Executable File

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
namespace Mocha.Web
{
public partial class Logout : System.Web.UI.Page
{
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
if (this.HasTenantedVariable("LoginToken"))
{
this.ClearTenantedVariable("LoginToken");
if (this.HasTenantedVariable("LoginRedirectURL"))
{
this.ClearTenantedVariable("LoginRedirectURL");
}
}
this.ClearTenantedVariable("OMS");
this.ClearTenantedVariable("oms_attachment_entropy");
Response.Redirect(String.Format("~/{0}", Master.GetCurrentTenantName()));
}
}
}