<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>An Overview of Forms Authentication</title><link>http://www.asp.net</link><pubDate>Wed, 27 Mar 2013 20:46:19 GMT</pubDate><generator>umbraco</generator><description>Comments for An Overview of Forms Authentication</description><language>en</language><atom:link href="http://www.asp.net/rss/comments/33338" rel="self" type="application/rss+xml" /><item><title>Comment Posted by ali.m.habib</title><link>http://www.asp.net/web-forms/tutorials/security/introduction/an-overview-of-forms-authentication-vb</link><pubDate>Wed, 10 Nov 2010 01:41:06 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010898</guid><description><![CDATA[ <p>but After log out Is till can access the default web page any suggestion to prevent that </p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/ali.m.habib.jpg?forceidenticon=false&amp;dt=635048121600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by duttavr</title><link>http://www.asp.net/web-forms/tutorials/security/introduction/an-overview-of-forms-authentication-vb</link><pubDate>Thu, 07 Apr 2011 15:39:45 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012734</guid><description><![CDATA[ <p>Excellent one for beginer who want to start with Forms authentication.</p><p>even other can brushup the concept quickly.</p><p>Thanks for the article.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/duttavr.jpg?forceidenticon=false&amp;dt=635048121600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by Anshul Khandelwal</title><link>http://www.asp.net/web-forms/tutorials/security/introduction/an-overview-of-forms-authentication-vb</link><pubDate>Sat, 14 May 2011 02:35:42 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013156</guid><description><![CDATA[ <p>Perfect...!!!</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/Anshul%20Khandelwal.jpg?forceidenticon=false&amp;dt=635048121600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by jkjerome</title><link>http://www.asp.net/web-forms/tutorials/security/introduction/an-overview-of-forms-authentication-vb</link><pubDate>Wed, 09 Jan 2013 00:20:45 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000017142</guid><description><![CDATA[ <p>I hit a big problem here. I had created my logout page in Accounts/Logout.aspx as I wanted to keep the authentication stuff separate from the root stuff.</p><p>When I tested the logout button(displayed from the loginstatus control), it took me to the login page instead, even though I&#39;d set it all correctly:</p><p></p><p>&lt;asp:LoginStatus ID=&quot;LoginStatus1&quot; runat=&quot;server&quot; LogoutAction=&quot;Redirect&quot; LogoutPageUrl=&quot;~/Account/Logout.aspx&quot; /&gt;</p><p></p><p>After ***much*** renaming, fruitless googling, red herring &quot;Eureka&quot; moments about permissions on subfolders, and intense rage, it finally occurred to me that the user is unauthenticated at the point they get to logout.aspx, and maybe anonymous users aren&#39;t allowed there by default.</p><p>Sure enough that was the problem and after a little more googling I found that the solution was to place this in the web config:</p><p></p><p>&lt;configuration&gt;</p><p>.</p><p>.</p><p>.</p><p>  &lt;location path=&quot;Account/logout.aspx&quot;&gt;</p><p>      &lt;system.web&gt;</p><p>          &lt;authorization&gt;</p><p>              &lt;allow users=&quot;?&quot; /&gt;</p><p>          &lt;/authorization&gt;</p><p>      &lt;/system.web&gt;</p><p>  &lt;/location&gt;</p><p>.</p><p>.</p><p>.</p><p>&lt;/configuration&gt;</p><p></p><p>That just allows anonymous users to see that particular page, leaving the rest of the default authorisation settings intact.</p><p>So the very thing I was trying to learn stung me in the arse while I was learning it. Seems blindingly obvious now, but obviously not at the time.</p><p>I dearly hope this saves someone else the pain I went through.</p><p>Good luck folks.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/jkjerome.jpg?forceidenticon=false&amp;dt=635048121600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ricka6</title><link>http://www.asp.net/web-forms/tutorials/security/introduction/an-overview-of-forms-authentication-vb</link><pubDate>Wed, 27 Mar 2013 20:46:19 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018785</guid><description><![CDATA[ <p>@jkjerome - thanks for posting</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/ricka6.jpg?forceidenticon=false&amp;dt=635048121600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>