Download as odp, pdf, or txt
Download as odp, pdf, or txt
You are on page 1of 14

Pemograman Web II

(Session & Cookies)


Cookies ?
A cookie is a name-value pair associated with a given
website, and stored on the computer that runs the client
(browser)
Session ?
A session is a way to store information (in
variables) to be used across multiple pages.
Unlike a cookie, the information is not stored on
the users computer.
Cookies PHP
Syntax:
Create/Retrieve a Cookie
Modify a Cookie Value
Delete a Cookie
Check if Cookies are Enabled
Check if Cookies are Enabled
Session PHP
Start a PHP Session
Get PHP Session Variable Values
Modify a PHP Session Variable
Destroy a PHP Session

You might also like