- if (!Config::get('system', 'disable_database_session')) {
- $memcache = Cache::memcache();
- if (is_object($memcache)) {
- $SessionHandler = new MemcacheSessionHandler($memcache);
- } else {
- $SessionHandler = new DatabaseSessionHandler();
- }
+ public static function set($name, $value)
+ {
+ DI::session()->set($name, $value);
+ }
+
+ public static function setMultiple(array $values)
+ {
+ DI::session()->setMultiple($values);
+ }
+
+ public static function remove($name)
+ {
+ DI::session()->remove($name);
+ }
+
+ public static function clear()
+ {
+ DI::session()->clear();
+ }
+
+ /**
+ * Returns contact ID for given user ID
+ *
+ * @param integer $uid User ID
+ * @return integer Contact ID of visitor for given user ID
+ */
+ public static function getRemoteContactID($uid)
+ {
+ $session = DI::session();