PHP Sessions and Session Handling

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/9

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 10:56 AM on 5/18/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

10 Terms

1
New cards

Session

Is a way to store user information on the server side so it can be used across multiple pages.

2
New cards

Cookie

Is a small piece of data stored on the user's browser (client-side) and sent to the server with every request.

3
New cards

1. Server

2. More Secure

3. Until browser closes

4. Login Systems

5. Larger

Key Concepts of Session

4
New cards

1. Client Browser

2. Less secure

3. Can persist

4. Preferences

5. Limited (~4kb)

Key Concepts of Cookies

5
New cards

1. Start Session

2. Store Data

3. Access Data

4. Destory Session

Session Lifecycle

6
New cards

session_start()

Code for Start Session

7
New cards

session_destroy()

Code of Destroy session

8
New cards

$_SESSION

Code for Store Data

9
New cards

$_SESSION

Code for Access Data

10
New cards

unset($_SESSION[]);

Code for unset a Session