|
Can I transfer username and password as parameters
to the protected file?
Yes. You can directly transfer username and password as parameters
to the a protected page. In this way, your visitors do not need
to enter password to access the protected content.
For single password mode, the syntax is:
http://www.yoursite.com/locked.html?mtpwd=XXX
The parameter must be "mtpwd".
For user/password mode, the syntax is:
http://www.yoursite.com/locked.html?mtusr=XXX&mtpwd=XXX
The parameters must be "mtusr" and "mtpwd".
I want to add
a login box to my home page, how can I do this?
Besides using a template file to customize the login page style,
you can also place a login box on another web page, such as
your home page. When the visitor inputs the username and password
in the login box, he will be redirected to the protected page.
The username and password can be transferred as URL parameters
or cookies to a protected page.
When transfering as URL parameters, the username and password
will display in the URL address, the URL string in the address
bar may look like http://www.yoursite.com/locked.html?mtusr=XXX&mtpwd=XXX.
Whereas transfering as cookies, the transfered username and
password will be hidden. But transfering as cookies only works
for protection type "Session" and "Cookie",
it does not work for "Page" protection type. The protection
type can be selected in Step 3, where "Session" is
the default option.
Single password mode (transfering password as cookie):
| Online Example: |
| Example
[Password is "mtopsoft"] |
| |
Source code of Single Password Mode login box:
|
| Note: The name of
the <input> filed must be "mtpwd", and
you must change the value in the script this.location.href="example1.htm"
to the address of your own protected file. |
User/password mode: (transfering user and password
as cookies)
Single password mode (transfering
password as URL parameter):
User/password mode: (transfering
user and password as URL parameters)

|