Title: Sessions ($$$)
Course: PHP/MySQL Course

Starting a session

A Session informally means the time that a user sits down, comes and does a bunch of things at a web site and eventually is done.

Inside of PHP, a session is considered done if the user has not come back to any pages for about 24 minutes or closes the browser. (1440 seconds)

Please Read about starting a session on pages 227 to 229.

Question:

What function do you always put first to use sessions

- session_start\s*(\(\s*\))*\s*(;)*

Using Sessions

Read about Working with session variables on page 229 to 235.

Question?

What function will delete the current session and all the data for it?

- session_destroy\s*(\(\s*\))*\s*(;)*