Re: Transfer Session Vars to different server
| From: | heinisch at creaction dot de | Date: | Mon, 08 Apr 2002 12:54:08 +0000 |
| Subject: | Re: Transfer Session Vars to different server | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-92030@lists.php.net to get a copy of this message | ||
At 08.04.2002 13:12, you wrote:
Hi, I have two servers with Apache PHP - carrying out different tasks. However, I have got a task that requires one application to use both servers. One of the units holds a bunch of session vars - which I would like to transfer to the other unit, when scripts on this second unit are called. What is the best way to do this? Clearly, I don't want to do this as a list of vars in the URL - some of the vars are sensitive. I would appreciate any comments. Chris I hope both machines are linux, unixthe scp-command (secure copy) will be your friend. So you save your vars in a file, scp this file from server1 to server2 and read the file, if it appears and is the correct one, read it in your script on the server2. To learn more about scp, see "man scp" HTH Oliver