forms authentication in asp.net

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Feb 2009
Posts: 54
Reputation: chriscross86 is an unknown quantity at this point 
Solved Threads: 0
chriscross86 chriscross86 is offline Offline
Junior Poster in Training

forms authentication in asp.net

 
0
  #1
Feb 19th, 2009
hi,
there...im trying to figure out where to use these authentication codes as im trying to come up with a login page. these codes are used over the <head> tag, but is it used within the <html> tag?



  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <configuration>
  3.  
  4. <!-- enable forms authentication -->
  5. <system.web>
  6. <authentication mode="Forms">
  7. <forms name="ASP101SampleAuth" loginUrl="login.aspx" />
  8. </authentication>
  9. </system.web>
  10.  
  11. <!-- set secure page to reject anonymous users -->
  12. <location path="login-protected.aspx">
  13. <system.web>
  14. <authorization>
  15. <deny users="?" />
  16. </authorization>
  17. </system.web>
  18. </location>
  19.  
  20. </configuration>
Last edited by peter_budo; Feb 21st, 2009 at 4:37 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 2,052
Reputation: serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light 
Solved Threads: 121
Featured Poster
serkan sendur serkan sendur is offline Offline
Postaholic

Re: forms authentication in asp.net

 
0
  #2
Feb 22nd, 2009
you should use these in web.config file, not within your html tags.
Due to lack of freedom of speech, i no longer post on this website.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 85
Reputation: johnny.g is an unknown quantity at this point 
Solved Threads: 3
johnny.g johnny.g is offline Offline
Junior Poster in Training

Re: forms authentication in asp.net

 
0
  #3
Feb 23rd, 2009
hi,, as serkan said,,this has to be used in the web config file.
here. There are predefined tags in the webconfig file, u dont have to create a separate html or xml file for ur project
Johnny.G
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC