Forms Authentication fails even when browser accepts cookies

While using Forms authentication in ASP.net

<forms name=".ASPXAUTH" loginUrl="login.aspx"
		  defaultUrl="Default.aspx" protection="All" timeout="30" path="/"
		  requireSSL="false" slidingExpiration="true"
		  cookieless="AutoDetect" domain=""
		  enableCrossAppRedirects="false">
		  <credentials passwordFormat="SHA1" />
</forms>

please remeber to set path = “/” or else the cookie based authentication fails, I am yet to figure out why this is happening but atleast this solves the problem.

15
Jun 2010
Author naresh
Category

.net Programming

Comments No Comments