set security settings

This commit is contained in:
Roland Gruber 2006-03-26 11:39:30 +00:00
parent d1d23d9a06
commit 4571e96e22
1 changed files with 5 additions and 2 deletions

View File

@ -362,8 +362,11 @@ if(!empty($_POST['checklogin']))
$_SESSION['header'] .= "<html>\n<head>\n"; $_SESSION['header'] .= "<html>\n<head>\n";
$_SESSION['header'] .= "<meta http-equiv=\"content-type\" content=\"text/html; charset=" . $current_language[1] . "\">\n"; $_SESSION['header'] .= "<meta http-equiv=\"content-type\" content=\"text/html; charset=" . $current_language[1] . "\">\n";
$_SESSION['header'] .= "<meta http-equiv=\"pragma\" content=\"no-cache\">\n <meta http-equiv=\"cache-control\" content=\"no-cache\">"; $_SESSION['header'] .= "<meta http-equiv=\"pragma\" content=\"no-cache\">\n <meta http-equiv=\"cache-control\" content=\"no-cache\">";
// set security settings for session
include("./main.php"); // Load main frame $_SESSION['sec_session_id'] = session_id();
$_SESSION['sec_client_ip'] = $_SERVER['REMOTE_ADDR'];
// Load main frame
include("./main.php");
} }
else else
{ {