Form based security


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Form based security

  1. #1
    Tom McGuinness Guest

    Form based security


    Hi, I am trying to secure one directory using forms based security, but it
    seems that it wont allow a

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

    within the directory (/tmc/family) that I am trying to secure.

    tmc is the root directory of the site.

    Has anyone any ideas?

    Tom.

  2. #2
    Phil Weber Guest

    Re: Security

    > I am using Forms based security. I have a web.config on
    > "/Process", and I want to create new dirs on "/Process",
    > and I want, without creating a new web.config...that this
    > new dir created by runtime, inherits the web.config from
    > "/Process".


    Jonas: OK. What's your question? Have you tried it?
    --
    Phil Weber


  3. #3
    jonas Guest

    Re: Security


    Thanks both.
    Well, i have tried and it "seemed" to be not working, because i was putting
    the url the browser and it showed the file because it was the ie cache. if
    i do the refresh, it will redirect to the login.

    thanks

    jonas


    ~
    David A. Rothgery <drothgery@alum.wpi.edu> wrote:
    >Phil Weber <philweber@hotmail.com> wrote:
    >> > I am using Forms based security. I have a web.config on
    >> > "/Process", and I want to create new dirs on "/Process",
    >> > and I want, without creating a new web.config...that this
    >> > new dir created by runtime, inherits the web.config from
    >> > "/Process".

    >>
    >> Jonas: OK. What's your question? Have you tried it?

    >
    >Though if he wants to have different permissions for different
    >subdirectories (or specific pages) in an ASP.NET application, he should


    >look at the <location> tag in web.config.
    >
    ><ms-
    >help://MS.NETFrameworkSDK/cpguidenf/html/cpconconfigurationlocationsetti
    >ngs.htm>
    >
    >(recombine the lines, if necessary)
    >
    >--
    >Dave Rothgery
    >Picking nits since 1976
    >drothgery@alum.wpi.edu
    >http://drothgery.editthispage.com



  4. #4
    David A. Rothgery Guest

    Re: Security

    Phil Weber <philweber@hotmail.com> wrote:
    > > I am using Forms based security. I have a web.config on
    > > "/Process", and I want to create new dirs on "/Process",
    > > and I want, without creating a new web.config...that this
    > > new dir created by runtime, inherits the web.config from
    > > "/Process".

    >
    > Jonas: OK. What's your question? Have you tried it?


    Though if he wants to have different permissions for different
    subdirectories (or specific pages) in an ASP.NET application, he should
    look at the <location> tag in web.config.

    <ms-
    help://MS.NETFrameworkSDK/cpguidenf/html/cpconconfigurationlocationsetti
    ngs.htm>

    (recombine the lines, if necessary)

    --
    Dave Rothgery
    Picking nits since 1976
    drothgery@alum.wpi.edu
    http://drothgery.editthispage.com

  5. #5
    Garry McGlennon Guest

    Re: Security

    Jonas

    You should keep in mind that if you modify the Web.Config file the
    application restarts (once current process is finished), this means you will
    loose any Session State you may have. Just something to keep in mind...

    Garry McGlennon

    "jonas" <vb.@127.0.0.1> wrote in message
    news:3e6f5145$1@tnews.web.devx.com...
    >
    > Thanks both.
    > Well, i have tried and it "seemed" to be not working, because i was

    putting
    > the url the browser and it showed the file because it was the ie cache. if
    > i do the refresh, it will redirect to the login.
    >
    > thanks
    >
    > jonas
    >
    >
    > ~
    > David A. Rothgery <drothgery@alum.wpi.edu> wrote:
    > >Phil Weber <philweber@hotmail.com> wrote:
    > >> > I am using Forms based security. I have a web.config on
    > >> > "/Process", and I want to create new dirs on "/Process",
    > >> > and I want, without creating a new web.config...that this
    > >> > new dir created by runtime, inherits the web.config from
    > >> > "/Process".
    > >>
    > >> Jonas: OK. What's your question? Have you tried it?

    > >
    > >Though if he wants to have different permissions for different
    > >subdirectories (or specific pages) in an ASP.NET application, he should

    >
    > >look at the <location> tag in web.config.
    > >
    > ><ms-
    > >help://MS.NETFrameworkSDK/cpguidenf/html/cpconconfigurationlocationsetti
    > >ngs.htm>
    > >
    > >(recombine the lines, if necessary)
    > >
    > >--
    > >Dave Rothgery
    > >Picking nits since 1976
    > >drothgery@alum.wpi.edu
    > >http://drothgery.editthispage.com

    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center