certo...[supersaibal]Originariamente inviato da Gianni_T
hai messo session_start() a inizio pagina? [/supersaibal]
posto il codice (che però ora nn funge neanche con request)
}<?php
session_start();
$username = $_SESSION['username'];
$password = $_SESSION['password'];
if (!$username || !$password || $username == "" || $password == "") {
header('WWW-Authenticate: Basic realm="Area Riservata"');
header('HTTP/1.0 401 Unauthorized');
echo 'Authorization Required! You can try to access now by clicking here.';
exit;
} else {
$_SESSION['username'] = $_SERVER['PHP_AUTH_USER'];
$_SESSION['password'] = $_SERVER['PHP_AUTH_PW'];
?>