Some cleanup of session code

Use PHP management of session cookie when a custom session_name is specifed.  Remove function_exists checks for session_cache_expire since all supported PHP versions will have it.