Login function test

Source: Internet
Author: User

First I do not enter the password directly into the background page

Http://localhost/myapp/index.php/Admin/index

Can't get in, go straight back to the login page

Enter account number, password, verification code

Jump to Background page success

Turn off the window and enter the background address

Into success

Turn off the window, clear the Cooki, and then enter the background address

Back to login page

Login page Enter the correct name, the wrong password, the correct verification code

Incorrect account or password

Login page Enter the wrong name, the correct password, the correct verification code

Incorrect account or password

Login page Enter the correct name, the correct password, the wrong verification code

The code is error

View Source Files

<body>
<form action= "/myapp/index.php/index/login.html" method= "post" >
Name: <input type= "text" name= "name" ><br>
Password: <input type= "text" name= "password" ><br>
Code: <input type= "text" name= "code" ><br>
src= "/myapp/index.php/index/verify.html"/>
<input type= "submit" >
</form>
</body>

Test completed, basic implementation of the login function, including the session function

Login function: The input data is taken out and compared with the database data

Session function: After successful login, the data in the database is written to the session, automatically detected, detect the existence of local cookies, and contain the corresponding data

Login function test

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.