diff --git a/reference/session/examples.xml b/reference/session/examples.xml index a63e3b3c2b..55646888e9 100644 --- a/reference/session/examples.xml +++ b/reference/session/examples.xml @@ -256,7 +256,7 @@ here. and memcached and can be set with session.save_handler. - When the session starts, PHP will internally call the open handler followed by the read callback + When the session starts, PHP will internally call the open handler followed by the read callback which should return an encoded string extactly as it was originally passed for storage. Once the read callback returns the encoded string, PHP will decode it and then populate the resulting array into the $_SESSION superglobal. @@ -265,7 +265,7 @@ here. When PHP shuts down (or when session_write_close is called), PHP will internally encode the $_SESSION superglobal and pass this along with the session ID to the the write callback. - After the write callback has finished, PHP will internally invoke the close callback handler. + After the write callback has finished, PHP will internally invoke the close callback handler. When a session is specifically destroyed, PHP will call the @@ -275,7 +275,7 @@ here. PHP will call the gc callback from time to time to expire any session records according to the set max lifetime of a session. This routine should delete all records from persistent storage which were - last accessed longer than the $lifetime. + last accessed longer than the $lifetime.