changes purchase id to session