An encrypted session handler