Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

adding a password page 2

Status
Not open for further replies.

gwillr

IS-IT--Management
Nov 4, 2003
267
CA
I want to add a password area, such as the login area on this site. does anyone know the "nuts & bolts" of how to do this?? My goal is to have different usernames and passwords that I define, not the user.

Gary
 
yeah, i am in fact using IIS as the server. Ill give this a try, but it seems more like a system that allows users to register themselves. Im looking for a login system that I can fully administer.

Gary
 
great, im going to give it a go. thanks for the help.

Gary
 
I am new to server side scripts and asp, any tips on how to deploy this login code?

Gary
 
OKAY GREAT, that iwll be no problem. how do i interconnect the html login page with the asp script and the database. what format should the database take?

Gary
 
Actually you will want the pages that you want to protect to be in ASP. The database can be Access if you want. And then in the very beginning, I think something like this is placed on each page you want to protect:
Code:
<%
Response.buffer=True
If Session(&quot;UserName&quot;) = &quot;&quot; Then 
Response.redirect &quot;login.asp?Redirect=&quot; &Request.Servervariables(&quot;URL&quot;)
End if
%>

I was looking over a page that I did a long time ago using that script.

__________________________
Corey

 
okay, so if a page is currently in html, is there an easy way to convert to asp? say..in FrontPage or something?


Gary
 
Well you can right click the page & choose rename. And then just change .html to .asp. Of course if you have a lot, you can always go to your command prompt & rename them all at once. (You will want to go to tools - recalculate hyperlinks if you do do it that way.)

__________________________
Corey

 
I was just looking for such a login script.
Thanks for that valuable link, Corey! [thumbsup2]

Andreas Galambos
EDP / Technical Support Specialist
(andreas.galambos@bowneglobal.de)
HP:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top