Author: gnuts4lunch | Posted on: 8/13/2008 1:45:17 PM | Views : 1043

hello all.. 

I am currently trying to secure a page in web.config (i know this is not the best way but...) and i have the following snippets in the web.config.. for some reason , they dont seem to work.

the problem is i can browse directly to abc.aspx..what i want is for the page login.aspx to come up anytime one tries to go DIRECTLY to abc.aspx... 

any ideas?

 

<location path="abc.aspx">
  <system.web>
   <authorization>
        <allow users="pyt" />
        <deny users="?" />
      </authorization>
  </system.web>
 </location>

<authentication mode="Forms">
   <forms loginUrl="login.aspx"  protection="All" timeo ...

Go to the complete details ...