|
| |
|
|
abbeyvet
Posts: 5095 From: Kilkenny Ireland Status: offline
|
Passing usernames and passwords - 11/5/2001 18:39:00
This is what I am trying to do, or maybe not to do. A client is licensing a large amount of content on her site to many different clients. The same content will be licensed to each, with a different user name and password for each. However they wish to link seamlessly from their own intranets - ie they do not want all of their staff to need to know the username and password, just to click a link. Some, though not all, will be framing the content. Now I know I can give them a link that includes the username and password and thus gives automatic entry, but the username and password would be stuck in the address bar if I do that, all the time in the case of those framing the site. We are not especially concerned with people peeping at the source and seeing the username and password, more with the aesthetics of them being plonked at the top of the page all the time. But I just cannot come up with another way of doing it. Anyone? ------------------ Katherine InKK Design LinKKs - Kilkenny's Online Magazine -*-*-*-*-*-*-*-*-*-* "Dogs have owners, cats have staff!"
|
|
|
|
joy
Posts: 178 From: Gilbert AZ USA Status: offline
|
RE: Passing usernames and passwords - 11/5/2001 23:59:00
I'm a newbie, so I probably won't explain this idea quite right, but here goes. Can you create one page for each client that will only allow access from their specific address and then have that page automatically log them in and redirect them to the pages they need?
|
|
|
|
abbeyvet
Posts: 5095 From: Kilkenny Ireland Status: offline
|
RE: Passing usernames and passwords - 11/6/2001 20:37:00
That's a good idea, and I could, if they were small companies and had specific addresses - but they are companies like Microsoft, Compaq and Motorola who have vast networks of websites and intranets and could be linking in from anywhere. And I think by logging them in there I would still get the username and password in the URL on the next page. Would I?It is a UNIX server with htaccess protection if that helps anyone have a brainwave. ------------------ Katherine InKK Design LinKKs - Kilkenny's Online Magazine -*-*-*-*-*-*-*-*-*-* "Dogs have owners, cats have staff!"
|
|
|
|
rdouglass
Posts: 9280 From: Biddeford, ME USA Status: offline
|
RE: Passing usernames and passwords - 11/6/2001 20:04:00
Maybe I'm not reading this correctly, but couldn't you use sessions? I know sessions should be used sparingly, but this seems to be the proper circumstance. ...or maybe a cookie that expires on browser close???
|
|
|
|
abbeyvet
Posts: 5095 From: Kilkenny Ireland Status: offline
|
RE: Passing usernames and passwords - 11/6/2001 20:20:00
Would I not have to be using asp to do that? I am not on an NT server.------------------ Katherine InKK Design LinKKs - Kilkenny's Online Magazine -*-*-*-*-*-*-*-*-*-* "Dogs have owners, cats have staff!"
|
|
|
|
paperfish
Posts: 184 From: None Status: offline
|
RE: Passing usernames and passwords - 11/7/2001 20:17:00
Just an idea:I recall reading somewhere that it is possible to pass parameters along with a hyperlink (it may have been a database to database transfer). I've never had to use this function, but it may be a way to pass information invisibly. Regards
|
|
|
|
abbeyvet
Posts: 5095 From: Kilkenny Ireland Status: offline
|
RE: Passing usernames and passwords - 11/7/2001 20:47:00
Thanks for that - but that is the problem! If you pass the parameter in a hyperlink, which I can do, then the actual hyperlink appears in the address bar - for example if my hyperlink was: http://username:password@www.mysite.com/protected_directory/page.html then that is what would appear in the users address bar.
At the moment my way around it is to have a chain of three pages: Page 1: The url I give the end user: eg www.mysite.com/start.html This is a page in the public area and redirects, passing the username and password in the redirect url to...... Page 2: http://username:password@www.mysite.com/protected_directory/userpage.html which puts the horrible url complete with visible username and password in their address bar. It gets them into the protected directory. This page also redirects to..... Page 3: http://www.mysite.com/protected_directory/index.html They have finally arrived!! It works, but it's messy. I am still racking my brains on this one. I would really love any other suggestions and thanks to those who have made suggestions already. ------------------ Katherine InKK Design LinKKs - Kilkenny's Online Magazine -*-*-*-*-*-*-*-*-*-* "Dogs have owners, cats have staff!"
[This message has been edited by abbeyvet (edited 11-07-2001).]
|
|
|
|
puiwaihin
Posts: 1378 From: Taiwan Status: offline
|
RE: Passing usernames and passwords - 11/9/2001 15:22:00
What about a redirect? Have the page open only to be redirected immediately to another page thus changing the url in the address bar?I was looking into a JavaScript that changes the text in the address bar directly, but I couldn't find anything that wouldn't actually change the page. Netscape browsers do have a "locationbar" object, but I couldn't find any property that would change the text. If such a thing exists it would be a tidy solution. Any such thing?
|
|
|
|
Charlesb
Posts: 42 From: Fort Collins CO USA Status: offline
|
RE: Passing usernames and passwords - 11/9/2001 18:22:00
Hi Katherine,I unfortunately have no experience with htaccess so I don't know if this is possible or not. But I would think it would be possible to have the username and passwords in hidden fields on Page one. On page two, have a script that supplies the htaccess with the username and password from page one. Hopefully this is possible and I am not merely exhibiting my ignorance. Charley
|
|
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
|
|
|