$sesPrefix = $ff->appNameShort .'-' .get_class($this) .'-'.$db->dsn['database'] ;
- @session_start();
-
-
- print_R($_SESSION);
if (!empty($_SESSION[get_class($this)][$sesPrefix .'-auth'])) {
// in session...
$ff= HTML_FlexyFramework::get();
$sesPrefix = $ff->appNameShort .'-' .get_class($this) .'-'.$db->dsn['database'] ;
- @session_start();
+
// we should not store the whole data in the session - otherwise it get's huge.
$p = DB_DAtaObject::Factory($this->tableName());
$p->get($this->pid());
//var_dump(array(get_class($this),$sesPrefix .'-auth'));
$_SESSION[get_class($this)][$sesPrefix .'-auth'] = serialize((object)$p->toArray());
// ensure it's written so that ajax calls can fetch it..
- print_R($_SESSION);
- @session_write_close();
- @session_start();
+
}
$db = $this->getDatabaseConnection();
$ff= HTML_FlexyFramework::get();
$sesPrefix = $ff->appNameShort .'-' .get_class($this) .'-'.$db->dsn['database'] ;
- @session_start();
+
$_SESSION[get_class($this)][$sesPrefix .'-auth'] = "";
- // ensure it's written so that ajax calls can fetch it..
- @session_write_close();
- @session_start();
-
+
}
function genPassKey ($t)