Thank you all for your answers. i was looking for a simple and fast answer -> I'm going to store the a unique id in the database, and pass it between applications using the $_SESSION. Shawn and Martin, Thank you very much for your help. Kind regards, -behzad