public function __set($key, $value) { if ($key == 'config') { $value = serialize($value); } elseif ($key == 'user') { $key = 'username'; } $sd = new modl\SessionxDAO(); $sd->update(self::$_sessionid, $key, $value); }
public function destroy() { $sd = new modl\SessionxDAO(); $sd->delete(self::$_sessionid); }