added code to sample to try to hook up specific session / cookie impls (not functional though)