Merge pull request #253 from wrongecho/cookie

Set PHP session cookie to be httponly
This commit is contained in:
Johnny 2022-01-07 14:28:17 -05:00 committed by GitHub
commit 1df39836fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,9 @@ $browser = strip_tags(mysqli_real_escape_string($mysqli,get_web_browser()));
$user_agent = "$os - $browser";
// HTTP Only cookies
ini_set("session.cookie_httponly", True);
session_start();
if(isset($_POST['login'])){