Getting protocol for session