[School Recruitment VIP] Network Storage of Professional Course Examination Center

Introduction to test points:
Cookie, session and localstorage are currently commonly used storage mechanisms. Whether it is a large factory or a small and medium-sized company, they will have a relatively high frequency of inspection on this issue, and there will be a certain degree of depth and comparative analysis.

Professional Course Test Center Network Storage - Related questions and analytical content can be viewed by clicking on the link at the end of the article!

1. Test questions

1. What will happen if you don’t set an expiration time for cookies?
A. Expires immediately
B. Never expires
C. Cookie cannot be set
D. Expires at the end of the browser session

The correct answer is that the validity time of D      cookie defaults to -1. If not set, it will end when the browser session is closed by default...

2. Tell me about the working principle of session? (Interview question)
Answer: In fact, a session is a file similar to a hash table that exists on the server. It contains the information we need, and we can take it out when we need to use it...

3. If the client disables cookies, can the session still be used? (Interview question)
Answer: Cookie and Session are generally considered to be two independent things. Session uses a solution that maintains state on the server side, while Cookie uses a solution that maintains state on the client side...

2. Examination articles

1. Thoroughly understand cookies, sessions, and tokens
. A long time ago, the Web was basically just browsing documents. Since it is browsing, as a server, there is no need to record who browsed what documents in a certain period of time. Each request is a The new HTTP protocol is request plus response...

2. The working principles and differences of session, cookie, and token.
Session: Saved on the server. Register and log in -> The server stores the user in the session -> Stores the sessionid in the browser's cookie -> When you visit again, based on the sessionid in the cookie, you can find the status of the user in the session...

3. Basic Principles of Session and Cookies
During the process of browsing the website, we often encounter situations where we need to log in. Some pages can only be accessed after logging in, and after logging in, you can visit the website many times in a row, but sometimes after a while You need to log in again. There are also some websites that automatically log you in when you open the browser...

3. Test point video

What is the relationship between process and thread?
A program has at least one process, and a process has at least one thread. The division scale of threads is smaller than that of processes, which makes multi-threaded programs have high concurrency...

Network Storage of Professional Course Test Centers - Related questions and analysis content can be viewed by clicking on the link below:
Network Storage of Professional Course Test Centers - Mobile Link
Network Storage of Professional Course Test Centers - PC Link

Guess you like

Origin blog.csdn.net/shuize123/article/details/132826716