Lecture 4: Cookies

?
Is HTTP Stateless?
Yes - HTTP is stateless. This means that web servers don't have the memory of the status of a connection so every connection will be considered as a fresh connection by the server.
1 of 6
CRUD Logic & PHP Functionality for Create
Logic: Set a cookie with name, value & expiry time & instruct the web browser to create it. PHP Function: setcookie() or setrawcookie()
2 of 6
CRUD Logic & PHP Functionality for Read
Logic: Read the value from the cookie. PHP Functionality: $_COOKIE[].
3 of 6
CRUD Logic & PHP Functionality for Update
Logic: Set a new cookie with the same name and new value and/or expiry time to "override" the existing cookie. PHP Functionality: setcookie() or setrawcookie().
4 of 6
Crud Logic & PHP Functionality for Delete
Logic: Set a new cookie with the same name and a new expiry time which is earlier than the current time to instruct the web browser to delete it. PHP Functionality: setcookie() or setrawcookie().
5 of 6
Are cookies part of the HTTP Header?
Yes - Cookies are part of the HTTP Header so setcookie() or setrawcookie() must be called before any HTML output is sent to the browser.
6 of 6

Other cards in this set

Card 2

Front

CRUD Logic & PHP Functionality for Create

Back

Logic: Set a cookie with name, value & expiry time & instruct the web browser to create it. PHP Function: setcookie() or setrawcookie()

Card 3

Front

CRUD Logic & PHP Functionality for Read

Back

Preview of the front of card 3

Card 4

Front

CRUD Logic & PHP Functionality for Update

Back

Preview of the front of card 4

Card 5

Front

Crud Logic & PHP Functionality for Delete

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 »