cuando lo ejecuto en mi propio PC desde "Localhost", las sesiones me funcionan bien, sin ningun problema.
pero cuando subi mi PHP a un hosting las sesiones no me funcionan, ¿a que se debe?
¿creen que mi hosting no soporta sesiones en PHP ? (uso el hosting www.zymic.com)
aqui les dejo mi PHP que hice:
index.php
Código PHP:
   <form id="form1" name="form1" method="post" action="login.php">
  <table width="200" border="1">
    <tr>
      <td>user</td>
      <td><label for="user"></label>
      <input type="text" name="user" id="user" /></td>
    </tr>
    <tr>
      <td>password</td>
      <td><label for="password"></label>
      <input type="text" name="password" id="password" /></td>
    </tr>
    <tr>
      <td colspan="2" align="center" valign="middle"><input type="submit" name="button" id="button" value="Submit" /></td>
    </tr>
  </table>
</form> 
    Código PHP:
   <?php
    session_start();
    $user=$_POST["user"];
    $password=$_POST["password"];
    session_register("user");
    header("location: welcome.php");
?>    Código PHP:
   <?php
    session_start();
    if($_SESSION["user"]==null){
        echo "ERROR, debe iniciar sesion";
    }else{
        echo "Bienvenido ".$_SESSION["user"];
        echo "<br><a href='logoff.php'>Desconectar</a>";
    }
?>    Código PHP:
   <?php
    session_start();
    session_destroy();
    header("location: index.php");
?>     
 
 no me funcionan las sesiones PHP en mi hosting
 no me funcionan las sesiones PHP en mi hosting 



