Thanks for the input Brad.
1) Yes, we are using SSL, so few worries about the outside world.
2) Imagine a scenario where you have two applications, one a document server with lots of reports on it in pdf format worth 1,000$ each, and a second app that provides print on demand, fulfilment and billing services.
The document server has to provide the url of the pdf file so the print app can retrieve it and print it, so the pdf file has to be within the doc root. Now if the punter can see this url they can save themselves 1,000$ :mad:
How do session variables pass between pages ? Suppose you had a packet sniffer, such as ethereal on your system could you see the url being passed in a session variable ? Thats why encryption seemed the route to go, with a password agreed between the owners of the two applications.
If I tried to use mcrypt on the session variable information would I have the same problem with quotes when I came to try and decode $_SESSION['myurl'] ?
What I think I really need is an mcrypt cypher that excludes the use of quote symbols in its encryption process.
Blu