1
0
This commit is contained in:
Daniel Tartavel 2022-09-21 15:12:33 +02:00
parent c58227eb8e
commit e3bc38908c

View File

@ -1,5 +1,5 @@
<?php
if (empty(session_id))
if (session_id() = "")
{
ini_set('session.use_strict_mode','true');
ini_set('session.cookie_secure','true');
@ -7,12 +7,13 @@ if (empty(session_id))
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
ini_set('serialize_precision', 8);
$cookiesparams = session_get_cookie_params();
session_set_cookie_params ( 0, $cookiesparams["path"], $cookiesparams["domain"], true, true );
}
error_reporting(E_ALL);
date_default_timezone_set("Europe/Paris");
$base_path = "/var/www/html/vote";
$base_path = "/var/www/html/vote";
set_include_path(get_include_path() . ':' .$base_path . '/include');
$cookiesparams = session_get_cookie_params();
session_set_cookie_params ( 0, $cookiesparams["path"], $cookiesparams["domain"], true, true );
session_start();
?>