Compare Page Revisions
« Older Revision - Back to Page History - Newer Revision »
web.config
//configuration/system.web/authentication/forms/@name
<configuration> <system.web> <authentication mode="Forms"> <forms loginUrl="~/Account/Login" defaultUrl="~" name="<span class='param'>tokenA</span>" /> . . .
//configuration/system.web/sessionState/@cookieName
<configuration> <system.web> <sessionState cookieName="<span class='param'>tokenA</span>" /> . . .
Startup.Auth.cs
public partial class Startup { public void ConfigureAuth(IAppBuilder app) { app.UseCookieAuthentication(new CookieAuthenticationOptions { AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie, LoginPath = new PathString("/Account/Login"), /* Add the following line */ CookieName = "<span class='param'>tokenB</span>" }); . . . } }
ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.