Store session variables.
authorIain Patterson <me@iain.cx>
Sat, 12 Apr 2014 19:41:12 +0000 (15:41 -0400)
committerIain Patterson <me@iain.cx>
Sat, 12 Apr 2014 19:43:06 +0000 (15:43 -0400)
Start a session so we can keep track of user preferences later.

lib/footer.php
lib/session.php [new file with mode: 0644]
www/index.php

index 3ccf4a8..da9130d 100644 (file)
@@ -2,3 +2,4 @@
 <div id="popup"></div>
 </body>
 </html>
+<?php session_write_close(); ?>
diff --git a/lib/session.php b/lib/session.php
new file mode 100644 (file)
index 0000000..9f415b8
--- /dev/null
@@ -0,0 +1,5 @@
+<?php
+
+  session_start();
+
+?>
index 4468e05..ae8b5a1 100644 (file)
@@ -32,6 +32,7 @@
   $username = $_SERVER['REMOTE_USER'];
   include_once("$lib_root/constants.php");
   include_once("$lib_root/functions.php");
+  include_once("$lib_root/session.php");
   include_once("$lib_root/header.php");
   $q = new UserQuery;
   $user = $q->findOneByUsername($username);