Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
Sirchrisak
Starting Member
19 Posts |
Posted - 2005-08-05 : 08:27:59
|
Hi gurus, In my Application, I want to restric some of forms against unauthorize users. i have to folders, one is public and the other where i have private forms is private . in the public config file i have the following xml script[CODE]<authentication mode="Forms"> <forms loginUrl="TIMS/TransactionLogIn.aspx" name =".TIMSCookie" path="/" timeout="30"> </forms> </authentication> <authorization> <allow users="*"/> <!-- Allow all users --> </authorization>[/CODE]Also in the private folder I have a web config file with the following script[CODE]<?xml version="1.0" encoding="utf-8" ?><configuration> <system.web> <authorization> <deny users="?"/> </authorization> </system.web></configuration>[/CODE] On my logIn page button I am using the following code to Authenticate users[CODE]FormsAuthentication.RedirectFromLoginPage(ClientSession._UserId, True) Response.Redirect("Private/CustomerMain.aspx")[/CODE] . my chalenge is that i have like four forms in the private folder. when try to open any private page in the private folder from my brouser without passing through the LogIn Page, To Some,I the page will display .only one page among the private forms "CustomerMain.aspx" will try to recognise that i have not been authenticated, and it will not send me to login page, instead, will generate the follwing error "The resource cannot be found. ". i guess i may be missing something in either any of my config file or login authentication code. Plz help!Chris |
|
|
|
|