having some trouble detecting session info