Skip to content
Permalink
Browse files

fixed typo in ini_get calls

  • Loading branch information...
jfanjoy-inetu committed Dec 2, 2015
1 parent bc67bef commit 0ac3b6d2323692372439980a88067e9cbc0bef0b
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Network/Session.php
@@ -100,7 +100,7 @@ public static function create($sessionConfig = [])
}
}
if (!isset($sessionConfig['ini']['session.cookie_secure']) && env('HTTPS') && get_ini("session.cookie_secure") != 1) {
if (!isset($sessionConfig['ini']['session.cookie_secure']) && env('HTTPS') && ini_get("session.cookie_secure") != 1) {
$sessionConfig['ini']['session.cookie_secure'] = 1;
}
@@ -112,7 +112,7 @@ public static function create($sessionConfig = [])
$sessionConfig['ini']['session.save_handler'] = 'user';
}
if (!isset($sessionConfig['ini']['session.cookie_httponly']) && get_ini("session.cookie_httponly") != 1) {
if (!isset($sessionConfig['ini']['session.cookie_httponly']) && ini_get("session.cookie_httponly") != 1) {
$sessionConfig['ini']['session.cookie_httponly'] = 1;
}

0 comments on commit 0ac3b6d

Please sign in to comment.
You can’t perform that action at this time.