changed how session is stored in the front