Click to See Complete Forum and Search --> : how to pass userid and pwd with request


mashraf
08-06-2003, 03:44 PM
Hi every one,

I have users to login a secure web site and they always have to login Userid and pwd. For security reason I want to make the id and pwd part of the Url so user do not have to type in all the time. I am wondering, is there a way, i can pass userid and pwd when opening a secure web site.

If i can embed it within a page and a click on a button would open the page and also send id and pwd, that would be great.

I tried

http://userid/pwd@url

but it does not work.

Thanks,
mashraf

PeOfEo
08-06-2003, 04:04 PM
If you are not using a server side language you should, if you are... which. You can keep users logged in my modifying session lengths for logins with any server side langauge, you can also use a cookie. The only time it is really practical to have variables such as a name id or password in a url is if they are genorated as a query string and are being recieved on another page.

Khalid Ali
08-06-2003, 05:05 PM
there are some limitations on what characters can form a valid URL

I think @ will be a bad character in a valid URI

mashraf
08-07-2003, 09:30 AM
Hello Khalik,

so you are saying
http://id:pwd@url

can not work. So is there any ohter way.

Thanks
Mashraf

Khalid Ali
08-07-2003, 12:02 PM
I have found this document somewhere on w3c(?? I guess).
It should shed some light for you on this issue

http://68.145.35.86/manual/rfc2396.txt