code_junkie

How do I use ASP.NET Login Controls when my Login.aspx is not at the root of my application?

Nov 10th, 2011
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. <authentication mode="Forms">
  2. <forms defaultUrl="~/Default.aspx" loginUrl="~/login.aspx" timeout="1440" ></forms>
  3. </authentication>
  4.  
  5. <?xml version="1.0"?>
  6. <configuration>
  7. <system.web>
  8. ...
  9. <!--
  10. The <authentication> section enables configuration
  11. of the security authentication mode used by
  12. ASP.NET to identify an incoming user.
  13. -->
  14. <authentication mode="Forms">
  15. <forms loginUrl="~/FolderName/Login.aspx" />
  16. </authentication>
  17. ...
  18. </system.web>
  19. ...
  20. </configuration>
Add Comment
Please, Sign In to add comment