Added some comments to sessions.php

Added some comments that detail what the purpose of various parameters
and similar are in sessions.php. See #269.