How to set cookie name for forms authentication?

I have 2 websites running on a local host in different ports. Since browsers do not distinguish port numbers when sending cookies, my authentication ticket from one site goes to another

How can i solve this? I thought that a good solution would be to change the forms authentication ticket or one of the websites, but I do not know how to do this.

+15
c # forms-authentication
02 Sep '10 at 21:59
source share
1 answer

In your web.config:

<authentication mode="Forms"> <forms name="{WhateverCookieNameYouWant}" loginUrl="LogOn.aspx" /> </authentication> 
+26
Sep 02 '10 at
source share



All Articles