<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Security</title><link>http://forums.asp.net/25.aspx</link><description>All about ASP.NET security (authentication, authorization, membership, roles, etc.) and the Login controls. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=24&amp;c=17" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: How to set/update LoginUrl of form based authentication?</title><link>http://forums.asp.net/thread/2288895.aspx</link><pubDate>Thu, 10 Apr 2008 12:19:22 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2288895</guid><dc:creator>GLind</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2288895.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=2288895</wfw:commentRss><description>&lt;p&gt;I solved my problem via XiaoYong Dai code example: &lt;a href="http://forums.asp.net/p/1216582/2167336.aspx#2167336"&gt;http://forums.asp.net/p/1216582/2167336.aspx#2167336&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Global.asax.cs:&lt;/strong&gt;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1    &lt;/b&gt;        &lt;span class="kwd"&gt;protected void&lt;/span&gt; Application_AuthenticateRequest(&lt;span class="kwd"&gt;object&lt;/span&gt; sender, EventArgs e)
&lt;b id="2"&gt;2    &lt;/b&gt;        {
&lt;b id="3"&gt;3    &lt;/b&gt;            &lt;span class="kwd"&gt;if&lt;/span&gt; (!Request.IsAuthenticated)
&lt;b id="4"&gt;4    &lt;/b&gt;            {
&lt;b id="5"&gt;5    &lt;/b&gt;                &lt;span class="kwd"&gt;if&lt;/span&gt; (Request.RawUrl.Contains(&lt;span class="st"&gt;&amp;quot;admin&amp;quot;&lt;/span&gt;))
&lt;b id="6"&gt;6    &lt;/b&gt;                {
&lt;b id="7"&gt;7    &lt;/b&gt;                    Response.Redirect(&lt;span class="st"&gt;&amp;quot;~/Admin/Login.aspx&amp;quot;&lt;/span&gt;);
&lt;b id="8"&gt;8    &lt;/b&gt;                } 
&lt;b id="9"&gt;9    &lt;/b&gt;            }
&lt;b id="10"&gt;10   &lt;/b&gt;        }
&lt;/pre&gt;&amp;nbsp;&lt;br /&gt;This will make the subfolder access the /admin/login.aspx and default will access the /member/login.aspx from the loginUrl in authentication.</description></item><item><title>Re: How to set/update LoginUrl of form based authentication?</title><link>http://forums.asp.net/thread/2288800.aspx</link><pubDate>Thu, 10 Apr 2008 11:32:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2288800</guid><dc:creator>Ganesh@Nilgris</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2288800.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=2288800</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Actually u have not understood the problem. Instead of having 2 login controls what u can have is one login control and u can have user roles. If the logged in user is defined as &amp;quot;admin&amp;quot; role then u can show all the pages which is under the admin folder. but all the regular users will have access to have normal files. Articles about &amp;quot;roles&amp;quot; would give u a better picture.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to set/update LoginUrl of form based authentication?</title><link>http://forums.asp.net/thread/2288535.aspx</link><pubDate>Thu, 10 Apr 2008 09:19:39 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2288535</guid><dc:creator>GLind</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2288535.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=2288535</wfw:commentRss><description>&lt;p&gt;True, I have remaked the solution to one login.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;But I got one design for admin login and one for regular login?&lt;/p&gt;</description></item><item><title>Re: How to set/update LoginUrl of form based authentication?</title><link>http://forums.asp.net/thread/2288495.aspx</link><pubDate>Thu, 10 Apr 2008 08:56:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2288495</guid><dc:creator>srulyt</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2288495.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=2288495</wfw:commentRss><description>&lt;p&gt;If its the same app and the same DB why not use one login and user roles?&lt;/p&gt;
&lt;p&gt;that is what user roles are for&lt;/p&gt;
&lt;p&gt;for more info check out the security tutorials on this site&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.asp.net/learn/security"&gt;www.asp.net/learn/security&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to set/update LoginUrl of form based authentication?</title><link>http://forums.asp.net/thread/2288260.aspx</link><pubDate>Thu, 10 Apr 2008 06:56:44 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2288260</guid><dc:creator>GLind</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2288260.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=2288260</wfw:commentRss><description>&lt;p&gt;I got the same problem. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Isn&amp;#39;t there any solution for this problem?&lt;/p&gt;</description></item><item><title>Re: How to set/update LoginUrl of form based authentication?</title><link>http://forums.asp.net/thread/2191751.aspx</link><pubDate>Sat, 23 Feb 2008 18:02:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2191751</guid><dc:creator>meetpravin123</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2191751.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=2191751</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello Guyes,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any&amp;nbsp; luck for this????&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How to set/update LoginUrl of form based authentication?</title><link>http://forums.asp.net/thread/2182918.aspx</link><pubDate>Tue, 19 Feb 2008 20:31:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2182918</guid><dc:creator>meetpravin123</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2182918.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=2182918</wfw:commentRss><description>&lt;p&gt;Yes, it will won&amp;#39;t work because to put form based authentication in inside web.config we need to set that folder as a virtual directory in IIS, is there any other way as I also want to keep track of the page from where i redirected to the login page.&lt;br /&gt; &lt;/p&gt;</description></item><item><title>Re: How to set/update LoginUrl of form based authentication?</title><link>http://forums.asp.net/thread/2180927.aspx</link><pubDate>Tue, 19 Feb 2008 00:23:15 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2180927</guid><dc:creator>annalady</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2180927.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=2180927</wfw:commentRss><description>&lt;p&gt;I don&amp;#39;t think that this will work&lt;/p&gt;
&lt;p&gt;But try it anyway, you never know...&lt;/p&gt;</description></item><item><title>Re: How to set/update LoginUrl of form based authentication?</title><link>http://forums.asp.net/thread/2180883.aspx</link><pubDate>Mon, 18 Feb 2008 23:40:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2180883</guid><dc:creator>s10n</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2180883.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=2180883</wfw:commentRss><description>&lt;p&gt;Create a web.config inside the folders that contain each one of your areas, this way you will be overriding the settings of your root web.config.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to set/update LoginUrl of form based authentication?</title><link>http://forums.asp.net/thread/2180874.aspx</link><pubDate>Mon, 18 Feb 2008 23:27:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2180874</guid><dc:creator>annalady</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2180874.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=2180874</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Sorry but you can&amp;#39;t specify multiple loginUrl in you web.config&lt;/p&gt;
&lt;p&gt;What you should do is redirect the user to a specific login page using QueryString parameters&lt;/p&gt;
&lt;p&gt;Then you can manually authenticate your user using the &lt;font color="#2b91af" size="2"&gt;FormsAuthentication&lt;/font&gt;&lt;font size="2"&gt;.Authenticate(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;name&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;password&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;); method&lt;/p&gt;&lt;/font&gt;</description></item><item><title>How to set/update LoginUrl of form based authentication?</title><link>http://forums.asp.net/thread/2180867.aspx</link><pubDate>Mon, 18 Feb 2008 23:19:13 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2180867</guid><dc:creator>meetpravin123</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2180867.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=25&amp;PostID=2180867</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;&amp;nbsp;I have created a web application in which i have two logins, for this I have two different login pages created, now my application is having one root web.config file where I can set the any one loginUrl, but what i can want it is, when user enters in the AREA1 then he should redirect to login page1 and when user enters in secure AREA2 then he should redirect to my second login page?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;how should i do this?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;any help to set or modify the loginUrl of form based authentication dynamically, is it possible or not?&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>