mirror of
https://github.com/itflow-org/itflow
synced 2026-03-24 14:35:38 +00:00
Merge pull request #253 from wrongecho/cookie
Set PHP session cookie to be httponly
This commit is contained in:
@@ -16,6 +16,9 @@ $browser = strip_tags(mysqli_real_escape_string($mysqli,get_web_browser()));
|
|||||||
|
|
||||||
$user_agent = "$os - $browser";
|
$user_agent = "$os - $browser";
|
||||||
|
|
||||||
|
// HTTP Only cookies
|
||||||
|
ini_set("session.cookie_httponly", True);
|
||||||
|
|
||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
if(isset($_POST['login'])){
|
if(isset($_POST['login'])){
|
||||||
|
|||||||
Reference in New Issue
Block a user