diff --git a/vendor/zynapse/active_session.php b/vendor/zynapse/active_session.php
index 74d468b..0e513db 100644
--- a/vendor/zynapse/active_session.php
+++ b/vendor/zynapse/active_session.php
@@ -33,6 +33,37 @@
class ActiveSession {
+ public
+
+ # client user agent (OS, browser, etc.)
+ $user_agent = null,
+
+ # client's remote ip address
+ $ip = null,
+
+ # session id
+ $id = null,
+
+ # session key to store verification data in
+ $key = '____zynapse_secure_session_data_verification____',
+
+ # Session class has been started?
+ $started = false;
+
+
+ function __construct () {
+ if ( array_key_exists('sess_id', $_REQUEST) ) {
+ session_id($_REQUEST['sess_id']);
+ }
+ session_start();
+ $this->id = session_id();
+ }
+
+ function init () {
+ //TODO validate and init zynapse's session features
+ $this->started = true;
+ }
+
}
?>
\ No newline at end of file
diff --git a/vendor/zynapse/zynapse.php b/vendor/zynapse/zynapse.php
index 35a5b53..bd143d9 100644
--- a/vendor/zynapse/zynapse.php
+++ b/vendor/zynapse/zynapse.php
@@ -36,11 +36,12 @@ class Zynapse {
public static
# Action Classes
- $env, // ActionEnvironment
- $base, // ActionBase
- $view, // ActionView
- $log, // ActionLog
- $locale; // ActiveLocale
+ $env, // ActionEnvironment
+ $base, // ActionBase
+ $view, // ActionView
+ $log, // ActionLog
+ $locale, // ActiveLocale
+ $session; // ActiveSession
function init () {
@@ -49,10 +50,17 @@ class Zynapse {
require_once(ZNAP_LIB_ROOT."/action_view.php");
require_once(ZNAP_LIB_ROOT."/active_session.php");
+ // enable php's session storage
+ self::$session = new ActiveSession();
+
+ // init core components
self::init_env();
self::init_base();
self::init_view();
+ // init zynapse's session system
+ self::$session->init();
+
echo "hello world
\n";
echo self::$env->environment."
\n
\n";
}