no, if you redirect to a different server, the session will be lost. Session data is cached on the web server's hard drive, so unless you've got a shared directory set up for the session data, you can't guarantee the session will move.
One caveat to this is if you use cookies. You can tell PHP to force the user's browser to keep a cookie containing the session data. This will also be mirrored on the web server's hard drive "just in case". If you are careful, you can probably convince the browser to save the session data during the redirect and then retrieve it again on the new server.
|