Adding get/post sessions settings. Also adding a method for authentication.