1. What is the 'third' step of the Session Working Logic?
PHP app server will allocate unique session ids for clients. This is saved as a client-side session cookie.
Each time when a session id is picked up, the corresponding data will be loaded.
Meanwhile, PHP app server writes the corresponding session data to the environment as a server-side session cookie.
1 of 5
Other questions in this quiz
2. What is the 'second' step of the Session Working Logic?
Each time when a session id is picked up, the corresponding data will be loaded.
PHP app server writes the corresponding session data to the environment as a server-side cookie. (Happens alongside to the first step)
PHP App server will allocate unique session ids for clients. This is saved as a client-side session cookie.
3. Which of these is NOT a property of a session cookie?
The value of the session cookie is the actual session ID, which can be accessed and updated by using session_id()
ID of PHP Session is usually stoed as a session cookie in clients machines.
ID
The default name of the cookie is PHPSESSID, which can be accessed and updated by using session_name().
4. What is the first step of the Session Working Logic?
PHP App server will allocate unique session ids for clients. This is saved as a client-side session cookie.
PHP app server writes the corresponding session data to the environment as a server-side session cookie.
Each time when a session id is picked up, the corresponding data will be loaded.
5. Which of these does not describe a session?
It is a semi-permanent dialogue between two communicating parties, which is used to store and exchange information. Example: When you log into Gmail, you are automatically logged into Google Docs etc.
When a bunch of people get together, smoke, drink and generally have a great time.
A session is an essential component of communication protocols, e.g., the 5th layer in the OSI model.
PHP Sessions are a web app specific state management solution to the stateless HTTP (Enables more customisable and user friendly applications to be built).
State management can relate to different requests from one source and preserve data across subsequent accesses.
Comments
No comments have yet been made