A session contains temporary attributes and information that are only useful for the session. It's attached to a PrestoConnection for as long as as the connection lives. There are a few types of information stored.
Session properties that can be set via query response headers and need to be sent with following HTTP requests.
Common table expressions (CTEs) that can be used to store a subquery and be used in a WITH statement.
.parameters
List of Presto session parameters to be added to the X-Presto-Session header.
.ctes
List of common table expressions (CTEs), i.e. SELECT statements with names. They can be used in a WITH statement.