1
0
Fork 0

Set secure attributes for session cookie

master
Anonymous Contributor 2023-08-23 18:16:34 +02:00
parent 43ea9eefda
commit c78e7e2007
1 changed files with 9 additions and 0 deletions

View File

@ -1,6 +1,15 @@
<?php <?php
date_default_timezone_set("Europe/Berlin"); date_default_timezone_set("Europe/Berlin");
error_reporting(E_ALL); error_reporting(E_ALL);
session_set_cookie_params([
'lifetime' => 86400,
'path' => '/',
'domain' => $RUNTIME['DOMAIN'],
'httponly' => true,
'secure' => true,
'samesite' => 'Lax'
]);
session_start(); session_start();
include_once 'classen/MAIL/PHPMailer.php'; include_once 'classen/MAIL/PHPMailer.php';