summaryrefslogtreecommitdiff
path: root/moe
diff options
context:
space:
mode:
authorneku nekus <neku@pomf.se>2014-01-15 13:28:22 +0100
committerneku nekus <neku@pomf.se>2014-01-15 13:28:22 +0100
commite6fc50aaadaee92122b02fda245ee7cfcc52eb53 (patch)
tree43e36ee63552a764f0877e84b361ef6782eca9bd /moe
parentb451727a18bcbfa70fdc9178d14367a46f27a88a (diff)
accounts?
Diffstat (limited to 'moe')
-rw-r--r--moe/includes/core.php1
-rw-r--r--moe/index.php1
2 files changed, 2 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');