added code to sample to hook up specific session / cookie impls