Development BS in the system should pay attention to some of the problems

Source: Internet
Author: User
The problem of yesterday and the pig a discussion about BS architecture of the system should be pay attention to those questions, I want to think, to organize, HOHO, are some humble opinion, I hope you to give me something that I didn't mention the things.

Since it is the B/S institution, the first from the B. Start talking :)
B = Browser (browser, misspelled. Don't yell at me .) Generally refers to the client, the General is the client's request, and then the Server Response Request, which is also designed to search, update the database. The client should pay attention to the issue, I summarized the following:
1, control settings
Here to say is: For users need to fill in the table, but the project (string ), must be fixed length. And the length cannot be greater than the corresponding database in the field length. Try to let customers less complete data, try to can encapsulate the data package, for example, require customers to fill in the Gender, given a radio program, the users need to fill in the date of birth, that are given to the day, month, and year in the drop-down menu, so that more than only give a text box is better.
2, on the show
For a database in the fields to show to the customer, must be the htmlEncode (CODE) later, to avoid database containing non-security code.

The talk about the server-side should pay attention to matters:
1, try not to put error message is returned to the browser, this is your master server must be permissions, and is to try to avoid mistakes.
2, for the client data, the first thing to do is to check, one is to check the data type is correct or not, two is to check the data, three check also contains illegal characters, here the illegal characters refers to some impact on the database of the characters. Here, it is recommended to use regular expressions to check the data of the legitimacy of. About SQL Injection not to say, because this. You want mentioned three points of the well, the problem is that won't show up.
3, for some system to prevent the database has been downloaded, about, go check it out for yourself. (HOHO)

For the time being thought of so many, wait for me to consummates slowly. Don't get the stuff I acridine...



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.