Login the same projectID with different directory

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
Danny
User
Posts: 138

Login the same projectID with different directory

Post by Danny »

Hi,
 
We want to login at both "portal" and "portal40" without changing the Session Cookie Name.

We found this:
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
// Add framework services.
services.AddApplicationInsightsTelemetry(Configuration);
services.AddMvc();
services.AddSession(o => {
o.CookieName = ".Portal.Session";
o.IdleTimeout = TimeSpan.FromMinutes((EW_SESSION_TIMEOUT > 0) ? EW_SESSION_TIMEOUT : 20);
});
}

But we don't want the Session Cookie Name... we want to login at both "portal" and "portal40" without changing the Session Cookie Name.

Regards,


Webmaster
User
Posts: 9425

Post by Webmaster »

Simply set your own "Session cookie name" in advanced settings.


Post Reply