Software test interview questions finishing

The difference between cookie and session?

1. The cookie is placed on the browser, and the session is placed on the server.

2. So cookies are not very secure. Others can analyze the cookies stored locally and use cookie spoofing in consideration of security. Sessions should be used.

3. The session will be saved on the server for a certain period of time. When access is increased, it will take up the performance of your server. Considering the reduction of server performance, COOKIE should be used.

4. The data saved by a single cookie cannot exceed 4K. Many browsers restrict a site to save up to 20 cookies.

5. Personal suggestion: Store important information such as login information as SESSION, if other information needs to be retained, it can be placed in COOKIE

6. The range of domain support is different. For example, cookies from a.com can be used under a.com, and Session from www.a.com cannot be used under api.a.com. The solution to this problem is JSONP or cross-domain resource sharing.

What are the seven layers of the iso seven-layer model?

Guess you like

Origin www.cnblogs.com/hongyufei/p/12735415.html