diff options
| -rw-r--r-- | moe/includes/core.php | 1 | ||||
| -rw-r--r-- | moe/index.php | 1 | ||||
| -rw-r--r-- | static/upload.php | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/moe/includes/core.php b/moe/includes/core.php index 4a5c61d..deb4937 100644 --- a/moe/includes/core.php +++ b/moe/includes/core.php @@ -2,6 +2,7 @@ // This file will handle all functions used by Pomf's Moe Panel // and just like the rest of the moe code this is a mess and will be // replaced soon +session_set_cookie_params(0, '/', '.pomf.se'); session_start(); $db = new PDO('mysql:unix_socket=/var/run/mysqld/mysqld.sock;dbname=xxx', 'xxx', 'xxx', array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'UTF8'")); diff --git a/moe/index.php b/moe/index.php index 0ff0176..43c8f23 100644 --- a/moe/index.php +++ b/moe/index.php @@ -1,4 +1,5 @@ <?php +session_set_cookie_params(0, '/', '.pomf.se'); session_start(); if(isset($_SESSION['id'])){ header('Location: includes/api.php?do=cp'); diff --git a/static/upload.php b/static/upload.php index a5d3069..d3ef403 100644 --- a/static/upload.php +++ b/static/upload.php @@ -1,5 +1,6 @@ <?php // For accounts? +session_set_cookie_params(0, '/', '.pomf.se'); session_start(); if(isset($_SESSION['id'])){ $fileowner = $_SESSION['id']; |
