Two websites, same FormsAuthenticationTicket?

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.
 
P

Paul Shapiro

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.
 
P

Paulus E Kurniawan

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" ... />
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top