check some parameters to session