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
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.