Subject: a question about authentication!
Posted By: 6cet6 Post Date: 11/12/2003 10:08:04 PM
i try to use <authentication mode="Forms"> to authenticaton my users, i have put "Login.aspx" and "success.aspx" in the folder,and the default page of this folder is "success.aspx",it works very well.

but when i have also put a "register.aspx" in this folder so people could register them. unfortunate,the ones who want to register click the button of register in the "login.aspx", but they would be also redirect to "login.aspx",so they couldn't visit the page of  "register.aspx".

how could i resolve it??


Reply By: planoie Reply Date: 11/12/2003 11:49:18 PM
One thing you can do is to create a subdirectory in your web application for the register file, and any other files that you might want to be public for that matter.

In that sub directory, put all of your public pages.  Also put a new web.config file that is blank.  Include only these lines in it:

<configuration>
    <system.web>
        <authorization>
            <allow users="*" />
        </authorization>
    </system.web>
</configuration>

This allows all users to view files in this directory only.  There is also supposedly a way to specify authorization in a one page.  I did some research but I was not able to find the syntax for it.  But I have used what I suggested above so I know at least that works.

Peter
------------------------------------------------------
Work smarter, not harder.
Reply By: 6cet6 Reply Date: 11/14/2003 1:13:13 AM
thank you peter!
i would try it now


Go to topic 6470

Return to index page 1006
Return to index page 1005
Return to index page 1004
Return to index page 1003
Return to index page 1002
Return to index page 1001
Return to index page 1000
Return to index page 999
Return to index page 998
Return to index page 997