Skip to content

DAN FOLKES

programmers blog

  • Home
  • Résumé
  • Contact
  • Code
  • Software
  • Thoughts

Tag: Web.conf

Quick n Easy – Forms Authentication – Web.conf


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/www/danfolkes.com/wp-content/plugins/wp-syntax/wp-syntax.php on line 383

I use the login page from here:
http://www.15seconds.com/issue/020220.htm

<!-- Web.Config Configuration File -->
 
<configuration>
 
  <system.web>
    <customErrors mode="Off"/>
    <compilation debug="true"/>
 
    <authentication mode="Forms">
      <forms loginUrl="FeedBack_Admin/login.aspx" protection="All" timeout="30">
        <credentials passwordFormat="Clear">
          <user name="admin" password="pass"/>
        </credentials>
      </forms>
    </authentication>
    <authorization>
      <allow users="*" />
    </authorization>
  </system.web>
 
  <location path="FeedBack_Admin">
    <system.web>
      <authorization>
        <deny users="?" />
      </authorization>
    </system.web>
  </location>
  <location path="Content_Admin">
    <system.web>
      <authorization>
        <deny users="?" />
      </authorization>
    </system.web>
  </location>
</configuration>

<!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="Off"/> <compilation debug="true"/> <authentication mode="Forms"> <forms loginUrl="FeedBack_Admin/login.aspx" protection="All" timeout="30"> <credentials passwordFormat="Clear"> <user name="admin" password="pass"/> </credentials> </forms> </authentication> <authorization> <allow users="*" /> </authorization> </system.web> <location path="FeedBack_Admin"> <system.web> <authorization> <deny users="?" /> </authorization> </system.web> </location> <location path="Content_Admin"> <system.web> <authorization> <deny users="?" /> </authorization> </system.web> </location> </configuration>

Related posts:

  1. Python: Wunderground Todays Weather to Email SMS to Phone
  2. QR(Quick Response) Codes
Author danPosted on June 15, 2010Categories .Net, CodeTags Authentication, authorization, c#, conf, easy, Forms, Forms Authentication, location, login, Quick, simple, vb.net, Web, Web.conf
Daniel Folkes
Richmond, VA
Developer
Twitter
Facebook
Github
Flickr
Google+

Categories

  • Code (68)
    • .Net (7)
    • Javascript (12)
    • jQuery (8)
    • Linux (9)
    • PHP (16)
    • Python (13)
    • SQL (1)
  • DIY (9)
  • Music (7)
    • mp3 (1)
  • Photos (30)
  • Software (31)
  • Thoughts (54)

Tags

  • AJAX
  • App
  • AspDotNetStorefront
  • best
  • c#
  • Chords
  • Code
  • comments
  • css
  • development
  • download
  • email
  • feed
  • Google
  • HTML
  • IE
  • Install
  • ip address
  • javascript
  • jpeg
  • jQuery
  • Lyrics
  • Music
  • mysql
  • PHP
  • Python
  • Reader
  • Recipe
  • Richmond
  • RSS
  • rss feed
  • Schedule
  • script
  • Setup
  • StoreFront
  • subject
  • twitter
  • Ubuntu
  • VA
  • VB
  • vb.net
  • Video
  • Web
  • Web Service
  • WordPress

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  • Home
  • Résumé
  • Contact
  • Code
  • Software
  • Thoughts
DAN FOLKES Proudly powered by WordPress