|
| |
|
|
Cebkent
Posts: 20 From: USA Status: offline
|
Passwords - 5/8/2003 13:08:46
Hi. I' ve searched through old posts & FAQs looking for an answer, but it doesn' t seem anyone has asked my exact question, so I' m posting here. Do I need to create a subweb just to have one page password-protected? I don' t even want to have usernames. Just a simple form, with a single password for everyone, that allows access to one page. Do I really need a subweb for that? What about a simple popup (like the one to login here!) that just asks for a password? I' m not trying to make anything overly " secure" (obviously); I' m just trying to set aside certain files for a small group of people. (Oh, I' m using FP 2000) TIA!
< Message edited by Cebkent -- 5/8/2003 1:10 PM >
|
|
|
|
Cebkent
Posts: 20 From: USA Status: offline
|
RE: Passwords - 5/9/2003 9:04:15
Thanks for replying... There' s no quick java program I could implement? My host has to set up the subweb...it' s just a hassle for one page. [:j]
|
|
|
|
Eli
Posts: 2659 From: ... er ... Status: offline
|
RE: Passwords - 5/9/2003 9:14:42
you can do it with an asp script. Does your host support asp?
_____________________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning
|
|
|
|
Cebkent
Posts: 20 From: USA Status: offline
|
RE: Passwords - 5/9/2003 9:18:36
Yes. I have IMC Online (VIA Networks). How/where would I access the appropriate script?
< Message edited by Cebkent -- 5/9/2003 9:19 AM >
|
|
|
|
Eli
Posts: 2659 From: ... er ... Status: offline
|
RE: Passwords - 5/9/2003 9:22:22
sweet - ok - do this: create a folder in FP. in that folder create a page called index.asp as follows (replace guest and login with your own username and password)
<%
msg = " "
If Request(" Submit" )<>" " Then
If Request(" username" ) = " guest" and Request(" password" )=" login" Then
Session(" Valid" ) = Request(" username" )
response.redirect " nextpage.asp" ' first protected page here
Else msg = " Invalid username or password. Try again!"
End If
End If
%>
<html><head><title>Password Protect</title></head>
<body><form action=" index.asp" method=" post" ><table>
<%If msg <> " " Then%>
<tr> <td colspan=" 2" ><font color=red><%=msg%></font></td></tr>
<%End If%>
<tr> <td>UserName:</td> <td><input type=" text" name=" UserName" ></td></tr>
<tr><td>Password:</td> <td><input type=" Password" name=" Password" ></td></tr>
<tr><td colspan=" 2" ><input type=" submit" name=" Submit" ></td></tr>
</table></form></body></html>
nb: change " nextpage.asp" to the next page that you want people to go to after logging in. On top of every ASP page you want to protect in the directory add the following function to the very top of the page:
<%If Session(" Valid" ) = " " Then
Response.redirect " index.asp"
End If%>
Any page with this in it will not allow the user to view it unless they are logged in!
_____________________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning
|
|
|
|
Eli
Posts: 2659 From: ... er ... Status: offline
|
RE: Passwords - 5/9/2003 14:10:09
yes, all paths should be relative
_____________________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning
|
|
|
|
Cebkent
Posts: 20 From: USA Status: offline
|
RE: Passwords - 5/9/2003 14:33:01
Sorry...I don' t know what that means. Should the links in the code read " index.asp" or " folder/index.asp" ? (I do know that this isn' t the source of my holdup because I published both ways and I still couldn' t get the password form to work. Also, are you able to discern what error I made (assuming it' s me) to prevent the password form from moving me on when I hit Submit? Thanks...
|
|
|
|
Eli
Posts: 2659 From: ... er ... Status: offline
|
RE: Passwords - 5/9/2003 16:19:00
hmmm! I can' t see any problems. try copying the code that I gave you exactly. Paste it into notepad, and then copy the notepad stuff into FP. don' t edit it until you know it works. see what happens. (remember to save your pages as .asp)
_____________________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning
|
|
|
|
Cebkent
Posts: 20 From: USA Status: offline
|
RE: Passwords - 5/13/2003 12:44:43
Okay, I did just your straight code and the page is still is bumping me back to itself. I know my host supports asp because I have other asp pages (although the code was generated by FP itself). I haven' t even changed your user/password settings. Here' s the URL that' s misbehaving: http://www.seisummit.org/praxis/index.asp which is supposed to move the user on to praxis.asp Thanks...
|
|
|
|
Eli
Posts: 2659 From: ... er ... Status: offline
|
RE: Passwords - 5/13/2003 12:50:28
its working fine ... just to prove it..... quote:
Below is a collection of resources and forms that you will find useful you' re obviously using the wrong password!!! username = guest password = login all fine here!!!!
_____________________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning
|
|
|
|
Cebkent
Posts: 20 From: USA Status: offline
|
RE: Passwords - 5/13/2003 14:04:01
WOW!! No, it' s my browser!! I use Netscape 7.02. When I tried it in IE, it went through just fine. Now why would that be...and is there anything I can do??
|
|
|
|
Cebkent
Posts: 20 From: USA Status: offline
|
RE: Passwords - 5/16/2003 9:28:21
Just bumpin' this up to see if there have been any developments...
_____________________________
The world is run by those who show up. --Steven Clift
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|