| |
A1:
| You can start a session with the session_start() function. |
| |
A2:
| You can access the session's ID with the session_id() function. |
| |
A3:
| You set an element in the superglobal $_SESSION array. |
| |
A4:
| The session_destroy() function removes all traces of a session for future requests. |
| |
A5:
| You can unset session elements by unsetting all elements of the $_SESSION array, like so:
$_SESSION = array();
|
| |
A6:
| If cookies are not available, the SID constant contains a name/value pair that can be incorporated in a query string. This will pass the session ID from script request to script request. |