Two websites, same FormsAuthenticationTicket?

  • Thread starter Thread starter Jeff Dege
  • Start date Start date
J

Jeff Dege

We have two different websites, both written in ASP.NET 2.0/C#, running
in different virtual directories on the same server.

They both use forms authentication.

Their FormsAuthenticationTicket cookies seem to overwrite each other.
 
In the respective application root's web.config add a unique setting for the
authentication name property:
<authentication mode="Forms">
<forms
name="MyApplication.ASPXAUTH"
path="/"
loginUrl="~/Login.aspx"
... etc.
 
Jeff,

Configure the authentication section in your web.config file to use a unique
name for the authentication cookie. The virtual directory name/alias is a
good choice.

<forms name="VirtualDirectoryAlias" ... />
 
Back
Top