BrowseLab Products Demos Support Company Download Pricing
Contents
:
Search:

Home > HelpConsole 2010 > How to Pass Username and Password via autologin.aspx via Form Object

How to Pass Username and Password via autologin.aspx via Form Object

You may find that you want to ensure that your HelpConsole always requires a login before use to ensure confidentiality and security. The example below assumes that the application calling the help system and the help system are on two diferent web servers (or two different virtual directories).

1. On the root of your C:\ create a document named Test_Login.htm and enter the code below:
<HTML>
<FORM ACTION="
http://localhost/helpconsole2010/{projectname}/autologin.aspx" METHOD="POST">
Enter the username:<input name="username" value="jsmith"><br>
Enter the password:<input name="password" value="trixy"><br>
<input TYPE="submit">
</FORM>
</HTML>


*NOTE: In the example code above, the username and password are pre-populated and assumes that there is a matching user named "jsmith" with a password of "trixy" in the help project. 2. Within your project folder create a file named "autologin.aspx" with the following code:

<%
Session("{Your_Project_Name}_autologin_username") = request.form("username")
Session("{Your_Project_Name}_autologin_password") = request.form("password")
Response.Redirect("default.aspx")
%>


3. In this example, when the help system is opened, you should be logged in as "jsmith"

APPLIES TO
- HelpConsole 2010


Anonymous2 years ago
this seems very insecure and easy for someone to intercept credentials.
Properties
Article ID:
how_to_passs_username_and_password_via_autologin_aspx_via_form_object
Views: 2315
Created By: admin
Modified By: aaron
Created Date: 5/1/2013 3:15 PM
Last Modified: 11/13/2014 1:48 PM
Actions
Print This Article
Bookmark
Email This Article
Previous Article
Next Article

Was this page helpful?YesNo