Fixed the session variable to store the ids.