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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing a log-on and password from one web-page to another

Status
Not open for further replies.

spud123

Technical User
Feb 23, 2001
6
AU
I have a log-on and password to a web-site.

I would like to pass this log-on and password through to another page which is a log-on into a web-based package. In this case it is the Web Access Desktop in Seagate Info 7.5
 
How does your log-on work?

The safest way is to store all of your usernames and passwords in a database, and to use a select statement to verufy that they match

eg: SELECT * FROM Users WHERE Name = uname and Password = pass (you'd then use an if RSet.EOF to check that the username and password are correct)

Having verified the password, you can write the username to a session variable: Session("Username") = uname.
This will allow you to ensure that all users of all pages have logged in:
if Session("Username")="" then response.redirect.....
You can also re-look up the password from the database for your other log-on.

Alternatively, of course, you can just set both the username and password as session variables, but that's not as secure.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top