Wrox Programmer Forums
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 23rd, 2004, 01:28 AM
Registered User
 
Join Date: Mar 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Authentication

HI all,
I am trying to use forms authentication for the web application.
but the problem I am facing is when I directly give an Url of page in the address bar which needs authentication before accessing the page, the page is getting displayed instead of redirecting to login page.any help will be appreciated.


 
Old March 23rd, 2004, 01:10 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

What have you done so far to set up forms authentication? Is you web.config set up right? Post the authentication portion of the web.config so we can see what might be wrong.
 
Old March 24th, 2004, 12:52 AM
Registered User
 
Join Date: Mar 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default


<authentication mode="Forms">
        <forms name="AuthCookie" path="/" loginUrl="aspxfiles/Login.aspx" protection="All" timeout="30" />
    </authentication>


Quote:
quote:Originally posted by planoie
 What have you done so far to set up forms authentication? Is you web.config set up right? Post the authentication portion of the web.config so we can see what might be wrong.
 
Old March 24th, 2004, 01:19 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

That looks fine.

What URL are you entering into the browser that is causing it to NOT redirect to the login page?
 
Old March 24th, 2004, 01:35 PM
Registered User
 
Join Date: Mar 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by planoie
 That looks fine.

What URL are you entering into the browser that is causing it to NOT redirect to the login page?
 
Old March 24th, 2004, 01:39 PM
Registered User
 
Join Date: Mar 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am giving url of default.aspx which actually should succed login.aspx.

Quote:
quote:Originally posted by PbsiGuru
 
Quote:
quote:Originally posted by planoie
Quote:
 That looks fine.

What URL are you entering into the browser that is causing it to NOT redirect to the login page?
 
Old March 24th, 2004, 02:41 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

A nice rule to follow would be to allow everyone to see the default page and then secure all other folders so that users have to login.

So, the root of your web app will be anonymous access and then everything in the "secure/" folder would need authentication.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Authentication stu9820 ASP.NET 1.0 and 1.1 Professional 4 December 7th, 2009 05:31 AM
Authentication r_ganesh76 ASP.NET 1.0 and 1.1 Professional 3 January 18th, 2008 11:34 AM
Authentication koco ASP.NET 2.0 Professional 1 August 21st, 2007 09:02 AM
Authentication speedyH Beginning PHP 1 September 25th, 2004 11:34 AM
Authentication dbradley ASP.NET 1.0 and 1.1 Basics 2 August 13th, 2003 10:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.