<┬┐php session_start(); $_SESSION['idioma'] = $_POST['login']; $_SESSION['password'] = $_POST['password']; $_SESSION['autenticat'] = "SI"; $idSessio=session_id(); //miro el mode $resultMode=mysql_query("SELECT * FROM mode", $link); $rowMode = mysql_fetch_array($resultMode); $operatiu=$rowMode["entorn_treball"]; $idSessio=session_id(); if ($operatiu=="windows"){ @mkdir ("e:\\tmp\\$idSessio", 0700); }else{ @mkdir ("/tmp/$idSessio", 0700); } mysql_free_result($resultMode); header("Location: http://localhost/principal.php"); }else{ require("../errorAutenticar.html"); } ?>