Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Security / October 2004

Tip: Looking for answers? Try searching our database.

Help with forms auth

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris - 25 Oct 2004 15:17 GMT
Hi,
I am using forms Auth on my WEB APP. I am checking the credentials in sql
server. When a user request any page other than login.aspx they get the page.
Shouldn't they be forwarded first to the Login.aspx? This is a section of my
web.config file

-->
        <authentication mode="Forms">
        <forms name ="reportcenterAuth" loginUrl="login.aspx" protection="All"
timeout="60" path="/"> </forms>
        </authentication>
        <!--  AUTHORIZATION
         This section sets the authorization policies of the application.
You can allow or deny access
         to application resources by user or role. Wildcards: "*" mean
everyone, "?" means anonymous
         (unauthenticated) users.
   -->
        <authorization>
            <deny users="?" />
            <allow users="*" /> <!-- Allow all users -->
            <!--  <allow     users="[comma separated list of users]"
                            roles="[comma separated list of roles]"/>
                 <deny      users="[comma separated list of users]"
                            roles="[comma separated list of roles]"/>
           -->
        </authorization>

Any ideas. I want when they first start the app and select any page they are
automatically forwarded to the login.aspx. Also when the user close the
browser and revisit the page they are also forwarded to the login.aspx.

Thanks
Gopal Krish - 29 Oct 2004 01:41 GMT
following is a copy of my web.config file

 <authentication mode="Forms">
   <forms name="Form1" path="/" loginUrl="login.aspx"
   protection="All" timeout="30">
   </forms>
 </authentication>

it works fantastic. Not sure why you would face the problem. check the
forms name and make sure they all match. All my forms are named
uniformly as Form1.

Good luck !!!

> Hi,
> I am using forms Auth on my WEB APP. I am checking the credentials in sql
[quoted text clipped - 29 lines]
>
> Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.