Lecture 9: Sessions

?
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.
1 of 8
What is the 'second' step of the Session Working Logic?
PHP app server writes the corresponding session data to the environment as a server-side cookie. (Happens alongside to the first step)
2 of 8
What is the 'third' step of the Session Working Logic?
Each time when a session id is picked up, the corresponding data will be loaded.
3 of 8
What is the working logic & PHP function for Create (CRUD)?
Logic: Enable session support for a script. Set session variables. PHP Function: $_SESSION[].
4 of 8
What is the working logic & PHP function for Read (CRUD)?
Logic: Read session variables which have been set. PHP Function: $_SESSION[].
5 of 8
What is the working logic & PHP function for Update (CRUD)?
Logic: Update session variables which have been set. PHP Function: $_SESSION[].
6 of 8
What is the working logic & PHP function for Delete (CRUD)?
Logic: Destroy/Unset Sessions. PHP Function: session_destroy() or unset().
7 of 8
What is the working logic & PHP function required for all CRUD operations to work?
Logic: Needs to be declared at the top (before HTML) of all scripts that will need session to be functional, to allow shared access to certain variables in multiple scripts. PHP Function: session_start().
8 of 8

Other cards in this set

Card 2

Front

What is the 'second' step of the Session Working Logic?

Back

PHP app server writes the corresponding session data to the environment as a server-side cookie. (Happens alongside to the first step)

Card 3

Front

What is the 'third' step of the Session Working Logic?

Back

Preview of the front of card 3

Card 4

Front

What is the working logic & PHP function for Create (CRUD)?

Back

Preview of the front of card 4

Card 5

Front

What is the working logic & PHP function for Read (CRUD)?

Back

Preview of the front of card 5
View more cards

Comments

No comments have yet been made

Similar Computing resources:

See all Computing resources »See all Web Technology Integration resources »