Cod: Selectaţi tot
setcookie("numeref", $_SESSION['nume'], time()+60*60*24*100, "/");
setcookie("parolaref", $_SESSION['parola'], time()+60*60*24*100, "/");
Cod: Selectaţi tot
setcookie("numeref", $_SESSION['nume'], time()+60*60*24*100, "/");
setcookie("parolaref", $_SESSION['parola'], time()+60*60*24*100, "/");
Cod: Selectaţi tot
ini_set('display_errors',1);
error_reporting(E_ALL);
Cod: Selectaţi tot
Warning: Cannot modify header information - headers already sent by (output started at /home/anuntgra/public_html/test/autentificare.php:10) in /home/anuntgra/public_html/test/autentificare.php on line 260
Cod: Selectaţi tot
setcookie("numeref", $_SESSION['nume'], time()+60*60*24*100, "/");
Cod: Selectaţi tot
if(isset($_POST['remember'])) {
setcookie("numeref", $_SESSION['nume'], time()+60*60*24*100, "/");
setcookie("parolaref", $_SESSION['parola'], time()+60*60*24*100, "/");
}
echo '<div align="center">
<div id="container-ms">
<div id="container-top-ms">
<div id="container-title-ms">
Autentificare reusita!
</div>
</div>
<div id="container-middle-ms">
<meta http-equiv="refresh" content="5;url=http://localhost/ref/paginamea.php">
Ai fost autentificat cu succes,
vei fi redirectionat in 5 secunde.Daca nu esti redirectionat automat <a href="paginamea.php">apasa aici</a>.
<div class="copyright-ms">
Site creat de catre <a href="http://www.ref-back.com">BBsTyLe</a> - Tema inspirata din tema <a href="http://www.apple.com">MAC OS X Lion</a>
</div>
<div id="tos-faq-ms">
<a href="termenii.php">Termeni si conditii</a> |
<a href="intrebari.php">Intrebari frecvente</a> |
<a href="contact.php">Contact</a>
</div>
</div>
<div id="container-bottom-ms">
</div>';
echo '<meta http-equiv="Refresh" content="5;url=http://localhost/ref/paginamea.php">';
exit;
}
Cod: Selectaţi tot
ob_start();
Cod: Selectaţi tot
ob_end_flush();