changeset 176:8f0d81f9c648

Move some session related code to its rightful place in session module.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 06 Nov 2013 10:28:32 +0200
parents 8df523e6326a
children 45eaa6571e72
files msession.inc.php msite.inc.php msitegen.inc.php
diffstat 3 files changed, 14 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/msession.inc.php	Wed Nov 06 10:27:57 2013 +0200
+++ b/msession.inc.php	Wed Nov 06 10:28:32 2013 +0200
@@ -5,6 +5,20 @@
 // (C) Copyright 2012-2013 Tecnic Software productions (TNSP)
 //
 
+define("SESS_USER", "user");
+define("SESS_ADMIN", "admin");
+
+
+if (function_exists("ini_set"))
+{
+  // Use cookies to store the session ID on the client side
+  @ini_set("session.use_only_cookies", 1);
+      
+  // Disable transparent Session ID support
+  @ini_set("session.use_trans_sid", 0);
+}
+
+
 function stGetSpecSessionItem($stype, $name, $default = "")
 {
   if (isset($stype))
--- a/msite.inc.php	Wed Nov 06 10:27:57 2013 +0200
+++ b/msite.inc.php	Wed Nov 06 10:28:32 2013 +0200
@@ -4,10 +4,6 @@
 // Generic and miscellaneous site support code
 // (C) Copyright 2012-2013 Tecnic Software productions (TNSP)
 //
-
-
-define("SESS_USER", "user");
-define("SESS_ADMIN", "admin");
 require_once "msitegen.inc.php";
 
 define("SMODE_ROTATE", 1);
--- a/msitegen.inc.php	Wed Nov 06 10:27:57 2013 +0200
+++ b/msitegen.inc.php	Wed Nov 06 10:28:32 2013 +0200
@@ -15,16 +15,6 @@
 define("VT_TEXT", 4);
 
 
-if (function_exists("ini_set"))
-{
-  // Use cookies to store the session ID on the client side
-  @ini_set("session.use_only_cookies", 1);
-      
-  // Disable transparent Session ID support
-  @ini_set("session.use_trans_sid", 0);
-}
-
-
 function stDebug($msg)
 {
   if (stGetSetting("debug"))