I'm running an ASP.NET Core 2.0 application which utilises ASP.NET Identity hosted in Azure App Service behind an Application Gateway.
I've set up a custom domain to point to the Application Gateway over SSL which then terminates the SSL and forwards the request onto my backend pool which uses the default *.azurewebsites.net domain over 80.
e.g. Request to custom.com:443 ---> Application Gateway ---> custom.azurewebsites.net:80
I've configured my ASP.NET Core 2.0 application to time the users session out after 1 hour using the following middleware:
services.ConfigureApplicationCookie(options =>
{
options.ExpireTimeSpan = TimeSpan.FromMinutes(60);
});
When the user times out and then performs another action, they're getting redirected to the login page on the app service on custom.azurewebsites.net:80 instead of back through the Application Gateway.
Is there a way to redirect to an absolute URL on timeout instead of a relative one?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…