bsgbiz_com
Posts: 8
|
| Posted: 09/07/2005, 3:42 PM |
|
I got the Login Builder to work. However, I can go straight to a URL. I want the pages to be password protected. How do I make all of the pages in a subdirectory require a user to login via the login.asp page?
I placed the login.asp page inside of the subdirectory. Is that correct?
I have obviously missed something. 
_________________
Greg Bush |
 |
 |
peterr
Posts: 5971
|
| Posted: 09/07/2005, 11:11 PM |
|
A directory is not used for this. You can assign the security level to each page using the "Restricted" property of the page.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
Greg Bush
|
| Posted: 09/08/2005, 2:56 PM |
|
Thanks. The "Restricted" property setting only seems to be available for pages that I create in CCS. Can you tell me exactly what code I need to copy out of a page with the Restricted property set to YES, so that pages I create in other programs will be restricted also?
I have it working now, but I think I copied more code than needed.
I think I need the common.asp include. What else do I need?
Can the pages that I insert this code into have an HTML extension? I'm doing an ASP project. Do the pages have to have an ASP extension?
|
|
|
 |
peterr
Posts: 5971
|
| Posted: 09/08/2005, 3:11 PM |
|
You cannot protect HTML pages this way, only ASP, but you can use a different method for protecting HTML pages. Generally you have at least couple choices:
- use IIS security for securing your folders. I don't know exact steps but you can probably find some tips on the net: http://www.google.com/search?hl=en&lr=&q=securing+iis+folder+login
- use CCS security for securing ASP pages. I haven't used it with external pages, but you should ony need couple lines of code:
<!-- #INCLUDE VIRTUAL="/Common.asp"-->
CCSecurityRedirect "2", Empty
The above 2nd line is just an example that I took from some generated page. Just search for "CCSecurityRedirect: within your generated page to find out the syntax for your security groups.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
|