1/9
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Session
Is a way to store user information on the server side so it can be used across multiple pages.
Cookie
Is a small piece of data stored on the user's browser (client-side) and sent to the server with every request.
1. Server
2. More Secure
3. Until browser closes
4. Login Systems
5. Larger
Key Concepts of Session
1. Client Browser
2. Less secure
3. Can persist
4. Preferences
5. Limited (~4kb)
Key Concepts of Cookies
1. Start Session
2. Store Data
3. Access Data
4. Destory Session
Session Lifecycle
session_start()
Code for Start Session
session_destroy()
Code of Destroy session
$_SESSION
Code for Store Data
$_SESSION
Code for Access Data
unset($_SESSION[]);
Code for unset a Session