Skip to content

Instantly share code, notes, and snippets.

@incrize
Created November 6, 2015 08:32
Show Gist options
  • Save incrize/375c60028e2454a83a29 to your computer and use it in GitHub Desktop.
Save incrize/375c60028e2454a83a29 to your computer and use it in GitHub Desktop.
diff --git a/app/Tygh/Session.php b/app/Tygh/Session.php
index d5ac870..9b79a72 100644
--- a/app/Tygh/Session.php
+++ b/app/Tygh/Session.php
@@ -435,7 +435,7 @@ class Session
ini_set('session.hash_bits_per_character', 4); // 4 bits for character, so we'll have 128/4 = 32 bytes hash length
// Secure session cookie with HTTPONLY parameter
- session_set_cookie_params(self::$ttl_storage, $cookie_path, $cookie_domain, false, true);
+ session_set_cookie_params(self::$ttl_storage, $cookie_path, $cookie_domain, true, true);
}
/**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment