Sarah
|
| Posted: 02/16/2002, 7:52 AM |
|
I want to add a login to a bunch of pages that dont relate to the database and I was wondering I have to make a bunch of pages with CC and paste the login on them and then work around it using html and end up with a bunch of extra .php pages, or is there a way to just link the pages to the original login.php?
thanks in advance!
Sarah
|
|
|
 |
AudiTT @ MCI
|
| Posted: 02/16/2002, 9:01 AM |
|
You could try clearing the session after login so that every page would force the login.
|
|
|
 |
antman
|
| Posted: 02/16/2002, 11:53 AM |
|
If you mean that you don't want to copy and paste the login form in every page then add a link as a menu form in the header
|
|
|
 |
Sarah
|
| Posted: 02/19/2002, 4:01 PM |
|
What I'm trying to say is, i have a some normal html page that I want a login on, but when I copy the html of my login.html I get the login with all of the funny {filename},{login},etc. How can I put this login on every page of the site, even the ones that i didn't make with code charge?
|
|
|
 |
Sean
|
| Posted: 02/19/2002, 7:26 PM |
|
I was just wondering, if the pages don't relate to the database then I understand that they don't display data from the database. But you want to use the database to store the login name and password for the user. Does that mean that the user will have a unique name or password for the different pages or does that mean you are going to have a name and password given to the users you want to access those pages?
My thoughts are that you can use a generic login page and test the login protected pages before showing it to see if the user is already logged in. If the user is not logged in, in other words the session variables do not match the login name and password, then you can redirect the user to the generic login page. Does this sound like what you are trying to achieve?
|
|
|
 |
Sarah
|
| Posted: 02/19/2002, 10:24 PM |
|
Sorry, I'm not being very clear at all! What I'm wanting is a login that redirects users to the database side of the site. Like there will be a normal welcome page with information along with a login that will direct the database users to there documents, or someone could choose to continue to the About us page and then be presented with that same login so they could then choose to access the database.
|
|
|
 |
Sean
|
| Posted: 02/19/2002, 10:34 PM |
|
One solution might be to create the generic login page and set it up, then if you right click on the page in CC explorer you can click on Add Similar page. This will create a duplicate page that you can edit, keep the original generic login page as a template for any more pages that you want to add the login to.
If I remember right you are using PHP with templates. You can edit the HTML file to include information that is not passed from the database. Make sure after you edit the HTML page that you don't regenerate it from CC as this will wipe out your hand coding of that page. You might want to make a backup copy of your hand coding in case you accidently regenerate the page from within CC.
You could also add the HTML code to the Header or Footer Section of the CC file so that if you do regenerate the page then the HTML code is automatically inserted into the new HTML document. You might want to experiment with this. Code in the Header section will appear before the login form and code in the Footer section will appear after the login form.
|
|
|
 |
peter
|
| Posted: 02/20/2002, 12:00 PM |
|
I don't know if this helps, but for those pages that I want 'login' I just specify the
security level when a page is created in CC (I have a the generin Login page already).
This way when a link tries to open a page generated in CC it will ask me for the
UserID/PWD first.
|
|
|
 |