Changed session objects to single objects so that session_store :cookie_store can be used.