Ejemplo n.º 1
0
 /**
  * アイドル更新
  *
  * @return void
  */
 public function updateIdle()
 {
     HTTP_Session2::updateIdle();
 }
Ejemplo n.º 2
0
 // using an existing MDB2 connection
 HTTP_Session2::setContainer('MDB2', array('dsn' => $GLOBALS['sql']->GetMDB2Object(), 'table' => 'session'));
 HTTP_Session2::start();
 HTTP_Session2::setExpire(time() + 60 * 60);
 // set expire to 60 minutes
 HTTP_Session2::setIdle(time() + 10 * 60);
 // set idle to 10 minutes
 if (HTTP_Session2::isExpired()) {
     syslog(LOG_INFO, "Session expired!!");
     HTTP_Session2::destroy();
 }
 if (HTTP_Session2::isIdle()) {
     syslog(LOG_INFO, "Session became idle");
     HTTP_Session2::destroy();
 }
 HTTP_Session2::updateIdle();
 if (HTTP_Session2::isNew()) {
     HTTP_Session2::register('authdata');
     HTTP_Session2::register('current_patient');
     HTTP_Session2::register('default_facility');
     HTTP_Session2::register('ipaddr');
     HTTP_Session2::register('language');
     HTTP_Session2::register('page_history');
     HTTP_Session2::register('page_history_name');
     HTTP_Session2::register('patient_history');
 }
 //----- Gettext and language settings
 if (isset($_REQUEST['_l'])) {
     // Handle template language changes
     HTTP_Session2::set('language', $_REQUEST['_l']);
 } elseif (HTTP_Session2::get('language')) {