195
14
Secure SeSSIon StorAge
PHP provides a very simple default mechanism to manage sessions. At the beginning
of a page, call session_start(), and add any session data to $_SESSION array,
like $SESSION['userName'] = $userName. Storage of session data, lookup of
session data, and client cookie management is all handled for the developer behind
the scenes.
Two major security problems with default session management are insecure storage of
session data and insecure session ID management. e most problematic issue is inse-
cure session ID management since lack of session ID validation leads to account com-
promise. Insecure file storage is also a concern, but is not as high risk as session cookies
traveling across the open Internet without any process ...