Question : how to use session variables between servers????

Somebody know how to use session variables between servers????

for example:

In localhost I had sesion.php with this code:
<?
session_start();
?>
<html>
<head>
<title>Generar variable de sesi&oacute;n</title>
</head>
<body>

<form action="http://www.itssc.edu.mx/sesion3.php" method="POST">
<p>Id
<input type="text" name="id" value="" size="">
</p>
<p>
Nombre
<input type="text" name="nombre" value="" size="">
</p>
<p>
<input name="enviar" type="submit" value="CONTINUAR">
</p>
</form>
</body>
</html>
--------------------------------------
I want to use the value in the variables inside sesion.php in http://www.itssc.edu.mx/sesion3.php

<?
session_start();
?>
<?
$_SESSION['direccion']=$_POST[direccion];
?>
<html>
<head>
<title>Muestra las variables de sesi&ocuate;n</title>
</head>
<body>
Muestro las variables:
<?
echo "<br>";
echo $_SESSION['id'];
echo "<br>";
echo $_SESSION['nombre'];
echo "<br>";

?>
</body>
</html>
----------------------------------------------------------------------------

I this possible????

Can I use session variables with php pages between diferent servers?????

Answer : how to use session variables between servers????

If the URLs are different, and I am guessing they are, no session sharing is going to happen easily, I'm afraid.  Your choices would depend on the ways you're sharing information between the servers now.

You can send variables in hidden fields in the forms or as part of the URL strings.  Obviously this would be public information, even if it is behind HTTPS.  

You can set up an API that authenticates requests and exposes the common data.  This would afford some extra security if it is behind HTTPS.

The design concept behind sessions is to preserve stateful information from one page of a web site to another.  When you're dealing with separate web sites, sessions are almost completely not applicable.  Sorry.

Maybe if you describe the application challenges from a "higher level" we can come up with a better solution.  Best, ~Ray
Random Solutions  
 
programming4us programming4us