If you don't know whether you'll cross paths with someone again, you can tell them espero volver a verte (“I hope to see you again”). You can answer to such a goodbye by saying yo también (“me too”).