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

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'])){