forms authentication

Last post 10-18-2008 12:54 PM by guru_sarkar. 5 replies.

Sort Posts:

  • forms authentication

    10-17-2008, 10:54 AM

    hi top all ..thanks in advance ..

    i have login page with forms authentication....in my login page, new registration,help... are there..

    with out login ,i am not able to create new registration,help....

    plz tell me how to access those functionalities with out login ?

     

  • Re: forms authentication

    10-17-2008, 12:51 PM
  • forms authentication

    10-18-2008, 12:38 AM

    it is my web.config file..

    <authentication mode="Forms">
                <forms name=".ASPXFORMSDEMO" loginUrl="index.aspx" protection="All" path="/" timeout="10" />
            </authentication>
            <authorization>
                <deny users="?"/>
                <allow users="*"/>

            </authorization>

     in my index.aspx(it is like my home page),i have registration ,help...etc are there in that page.i want access those funcationalities with out authentication.i tried like this..but not working..

    <location path="index.aspx">   // it is my login page.. and other funcationalities like registration....also there ...
            <system.web>
                <authorization>
                    <allow users="*" />
                  
                </authorization>
            </system.web>
        </location>

  • Re: forms authentication

    10-18-2008, 11:45 AM
    • All-Star
      16,431 point All-Star
    • guru_sarkar
    • Member since 08-30-2007, 8:00 PM
    • Posts 2,476
    <location path="index.aspx">   // it is my login page.. and other funcationalities like registration....also there ...

    what exactly is the problem? 

    When you say registration Functionality etc..do you mean links to different page or it means you have registration Controls etc on the same page..

    Please share more details..

     

  • Re: forms authentication

    10-18-2008, 11:53 AM

    yes ..exactly..registartion page is different..but registration button is in index.aspx.
    like this other pages also there...

    in my index.aspx, login,registration,help..options are there..


  • Re: forms authentication

    10-18-2008, 12:54 PM
    Answer
    • All-Star
      16,431 point All-Star
    • guru_sarkar
    • Member since 08-30-2007, 8:00 PM
    • Posts 2,476

     then you need to add two location like this:

    <location path="Register.aspx">   // path to registration page
            <system.web>
                <authorization>
                    <allow users="*" />
                  
                </authorization>
            </system.web>
        </location> 

     

    <location path="help.aspx">   // To help page
            <system.web>
                <authorization>
                    <allow users="*" />
                  
                </authorization>
            </system.web>
        </location>  

     

    or you can put these pages in a seperate folder e.g name publicFolder and add it like this:

    <location path="publicFolder ">   // path to public folder
            <system.web>
                <authorization>
                    <allow users="*" />
                  
                </authorization>
            </system.web>
        </location>  

Page 1 of 1 (6 items)