diff msession.inc.php @ 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 fef53f6170b5
children 2af8458058ab
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))